Salome HOME
projects
/
modules
/
geom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix of transparency on Mandriva2010: it didn't worked because of the returned 'testRe...
[modules/geom.git]
/
src
/
OBJECT
/
GEOM_Actor.h
diff --git
a/src/OBJECT/GEOM_Actor.h
b/src/OBJECT/GEOM_Actor.h
index af1b9b7e239db9bcdac2772def08fe58fcf46bcf..e31ea1990c431eb3d378a2ea97752f7396beea37 100644
(file)
--- a/
src/OBJECT/GEOM_Actor.h
+++ b/
src/OBJECT/GEOM_Actor.h
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
08
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-20
10
CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-19,6
+19,7
@@
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+
// GEOM OBJECT : interactive object for Geometry entities visualization
// File : GEOM_Actor.h
// Author : Christophe ATTANASIO
// GEOM OBJECT : interactive object for Geometry entities visualization
// File : GEOM_Actor.h
// Author : Christophe ATTANASIO
@@
-50,7
+51,6
@@
typedef GEOM_SmartPtr<GEOM_WireframeFace> PWFaceSource;
class GEOM_ShadingFace;
typedef GEOM_SmartPtr<GEOM_ShadingFace> PSFaceSource;
class GEOM_ShadingFace;
typedef GEOM_SmartPtr<GEOM_ShadingFace> PSFaceSource;
-#include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
class vtkRenderer;
class vtkAppendPolyData;
class vtkRenderer;
class vtkAppendPolyData;
@@
-102,7
+102,7
@@
public:
void ReleaseGraphicsResources(vtkWindow *);
const TopoDS_Shape& getTopo();
void setInputShape(const TopoDS_Shape& ashape, double adef1,
void ReleaseGraphicsResources(vtkWindow *);
const TopoDS_Shape& getTopo();
void setInputShape(const TopoDS_Shape& ashape, double adef1,
- int imode, bool isVector = false);
+
int imode, bool isVector = false);
double getDeflection();
double isVector();
double getDeflection();
double isVector();
@@
-137,15
+137,15
@@
public:
virtual
bool
PreHighlight(vtkInteractorStyle* theInteractorStyle,
virtual
bool
PreHighlight(vtkInteractorStyle* theInteractorStyle,
- SVTK_SelectionEvent* theSelectionEvent,
- bool theIsHighlight);
+
SVTK_SelectionEvent* theSelectionEvent,
+
bool theIsHighlight);
//! To process highlight (called from #SVTK_InteractorStyle)
virtual
bool
Highlight(vtkInteractorStyle* theInteractorStyle,
//! To process highlight (called from #SVTK_InteractorStyle)
virtual
bool
Highlight(vtkInteractorStyle* theInteractorStyle,
- SVTK_SelectionEvent* theSelectionEvent,
- bool theIsHighlight);
+
SVTK_SelectionEvent* theSelectionEvent,
+
bool theIsHighlight);
//! Visibility management
virtual
//! Visibility management
virtual
@@
-162,12
+162,17
@@
public:
virtual
void
GetNbIsos(int &theNbU,int &theNbV);
virtual
void
GetNbIsos(int &theNbU,int &theNbV);
+
+ //! Vector mode management
+ virtual
+ void
+ SetVectorMode(const bool theMode);
-protected:
- void SetShape(const TopoDS_Shape& theShape,
- const TopTools_IndexedDataMapOfShapeListOfShape& theEdgeMap,
- bool theIsVector = false);
+ virtual
+ bool
+ GetVectorMode();
+protected:
void SetModified();
void GetMatrix(vtkCamera* theCam, vtkMatrix4x4 *result);
void SetModified();
void GetMatrix(vtkCamera* theCam, vtkMatrix4x4 *result);
@@
-178,6
+183,7
@@
protected:
private:
TopoDS_Shape myShape;
int myNbIsos[2];
private:
TopoDS_Shape myShape;
int myNbIsos[2];
+ bool isOnlyVertex;
float myDeflection;
bool myIsRelative;
float myDeflection;
bool myIsRelative;
@@
-185,6
+191,7
@@
private:
// EDisplayMode myDisplayMode;
bool myIsSelected;
// EDisplayMode myDisplayMode;
bool myIsSelected;
+ bool myVectorMode;
PDeviceActor myVertexActor;
PVertexSource myVertexSource;
PDeviceActor myVertexActor;
PVertexSource myVertexSource;