This class allows to display an OpenCASCADE CAD model in a VTK viewer.
#include <GEOM_Actor.h>

Public Types | |
| enum | EDisplayMode { eWireframe, eShading } |
Public Member Functions | |
| vtkTypeMacro (GEOM_Actor, SALOME_Actor) | |
| void | SetShape (const TopoDS_Shape &theShape, float theDeflection, bool theIsVector=false) |
| void | SetDeflection (float theDeflection) |
| float | GetDeflection () const |
| void | AddToRender (vtkRenderer *theRenderer) |
| void | RemoveFromRender (vtkRenderer *theRenderer) |
| void | SetSelected (bool theIsSelected) |
| bool | IsSelected () const |
| void | SetHighlightProperty (vtkProperty *Prop) |
| void | SetWireframeProperty (vtkProperty *Prop) |
| void | SetShadingProperty (vtkProperty *Prop) |
| void | setDeflection (double adef) |
| virtual void | setDisplayMode (int thenewmode) |
| virtual void | Render (vtkRenderer *, vtkMapper *) |
| void | ReleaseGraphicsResources (vtkWindow *) |
| const TopoDS_Shape & | getTopo () |
| void | setInputShape (const TopoDS_Shape &ashape, double adef1, int imode, bool isVector=false) |
| double | getDeflection () |
| double | isVector () |
| void | SubShapeOn () |
| void | SubShapeOff () |
| virtual void | highlight (bool theHighlight) |
| virtual bool | hasHighlight () |
| void | ShallowCopy (vtkProp *prop) |
| void | SetOpacity (vtkFloatingPointType opa) |
| vtkFloatingPointType | GetOpacity () |
| void | SetColor (vtkFloatingPointType r, vtkFloatingPointType g, vtkFloatingPointType b) |
| void | GetColor (vtkFloatingPointType &r, vtkFloatingPointType &g, vtkFloatingPointType &b) |
| virtual bool | IsInfinitive () |
| virtual void | Highlight (bool theHighlight) |
| To map current selection to VTK representation. | |
| virtual bool | PreHighlight (vtkInteractorStyle *theInteractorStyle, SVTK_SelectionEvent *theSelectionEvent, bool theIsHighlight) |
| To process prehighlight (called from #SVTK_InteractorStyle) | |
| virtual bool | Highlight (vtkInteractorStyle *theInteractorStyle, SVTK_SelectionEvent *theSelectionEvent, bool theIsHighlight) |
| To process highlight (called from #SVTK_InteractorStyle) | |
| virtual void | SetVisibility (int) |
| Visibility management. | |
| virtual void | SetNbIsos (const int theNb[2]) |
| IsoLines management. | |
| virtual void | GetNbIsos (int &theNbU, int &theNbV) |
| virtual void | SetVectorMode (const bool theMode) |
| Vector mode management. | |
| virtual bool | GetVectorMode () |
Static Public Member Functions | |
| static GEOM_Actor * | New () |
Protected Member Functions | |
| void | SetModified () |
| void | GetMatrix (vtkCamera *theCam, vtkMatrix4x4 *result) |
| GEOM_Actor () | |
| ~GEOM_Actor () | |
Private Member Functions | |
| virtual void | SetMapper (vtkMapper *) |
| GEOM_Actor (const GEOM_Actor &) | |
| void | operator= (const GEOM_Actor &) |
Private Attributes | |
| TopoDS_Shape | myShape |
| int | myNbIsos [2] |
| bool | isOnlyVertex |
| float | myDeflection |
| bool | myIsForced |
| bool | myIsSelected |
| bool | myVectorMode |
| PDeviceActor | myVertexActor |
| PVertexSource | myVertexSource |
| PDeviceActor | myIsolatedEdgeActor |
| PEdgeSource | myIsolatedEdgeSource |
| PDeviceActor | myOneFaceEdgeActor |
| PEdgeSource | myOneFaceEdgeSource |
| PDeviceActor | mySharedEdgeActor |
| PEdgeSource | mySharedEdgeSource |
| PDeviceActor | myWireframeFaceActor |
| PWFaceSource | myWireframeFaceSource |
| PDeviceActor | myShadingFaceActor |
| PSFaceSource | myShadingFaceSource |
| PDeviceActor | myHighlightActor |
| vtkSmartPointer< vtkProperty > | myHighlightProp |
| vtkSmartPointer< vtkProperty > | myPreHighlightProp |
| vtkSmartPointer< vtkProperty > | myShadingFaceProp |
| PAppendFilter | myAppendFilter |
| PPolyDataMapper | myPolyDataMapper |
| GEOM_Actor::GEOM_Actor | ( | ) | [protected] |
References myAppendFilter, myHighlightActor, myHighlightProp, myIsolatedEdgeActor, myIsolatedEdgeSource, myOneFaceEdgeActor, myOneFaceEdgeSource, myPolyDataMapper, myPreHighlightProp, myShadingFaceActor, myShadingFaceProp, myShadingFaceSource, mySharedEdgeActor, mySharedEdgeSource, myVertexActor, myVertexSource, myWireframeFaceActor, myWireframeFaceSource, setDisplayMode(), and SetVectorMode().
| GEOM_Actor::~GEOM_Actor | ( | ) | [protected] |
References myHighlightProp, myPreHighlightProp, and myShadingFaceProp.
| GEOM_Actor.GEOM_Actor | ( | const GEOM_Actor & | ) | [private] |
| GEOM_Actor.vtkTypeMacro | ( | GEOM_Actor | , |
| SALOME_Actor | |||
| ) |
| GEOM_Actor * GEOM_Actor::New | ( | ) | [static] |
References GEOM_Actor(), GEOM_SmartPtr< T >.Get(), myPolyDataMapper, and SetMapper().
| void GEOM_Actor::SetShape | ( | const TopoDS_Shape & | theShape, |
| float | theDeflection, | ||
| bool | theIsVector = false |
||
| ) |
| void GEOM_Actor::SetDeflection | ( | float | theDeflection | ) |
References GEOM.MeshShape(), myDeflection, myShape, and SetModified().
| float GEOM_Actor.GetDeflection | ( | ) | const |
| void GEOM_Actor::AddToRender | ( | vtkRenderer * | theRenderer | ) |
| void GEOM_Actor::RemoveFromRender | ( | vtkRenderer * | theRenderer | ) |
| void GEOM_Actor::SetSelected | ( | bool | theIsSelected | ) |
References myIsSelected, and SetVisibility().
| bool GEOM_Actor.IsSelected | ( | ) | const |
| void GEOM_Actor::SetHighlightProperty | ( | vtkProperty * | Prop | ) |
References myHighlightActor.
| void GEOM_Actor::SetWireframeProperty | ( | vtkProperty * | Prop | ) |
References myWireframeFaceActor.
| void GEOM_Actor::SetShadingProperty | ( | vtkProperty * | Prop | ) |
References myShadingFaceProp.
| void GEOM_Actor::setDeflection | ( | double | adef | ) |
References SetDeflection().
| void GEOM_Actor::setDisplayMode | ( | int | thenewmode | ) | [virtual] |
References SetVisibility().
| void GEOM_Actor::Render | ( | vtkRenderer * | ren, |
| vtkMapper * | theMapper | ||
| ) | [virtual] |
References myHighlightActor, myHighlightProp, myIsSelected, myPreHighlightProp, myShadingFaceActor, and myShadingFaceProp.
| void GEOM_Actor::ReleaseGraphicsResources | ( | vtkWindow * | ) |
| const TopoDS_Shape & GEOM_Actor::getTopo | ( | ) |
References myShape.
| void GEOM_Actor::setInputShape | ( | const TopoDS_Shape & | ashape, |
| double | adef1, | ||
| int | imode, | ||
| bool | isVector = false |
||
| ) |
| double GEOM_Actor::getDeflection | ( | ) |
References GetDeflection().
| double GEOM_Actor::isVector | ( | ) |
| void GEOM_Actor::SubShapeOn | ( | ) |
| void GEOM_Actor::SubShapeOff | ( | ) |
| void GEOM_Actor::highlight | ( | bool | theHighlight | ) | [virtual] |
| virtual bool GEOM_Actor.hasHighlight | ( | ) | [virtual] |
| void GEOM_Actor::ShallowCopy | ( | vtkProp * | prop | ) |
References GetDeflection(), getTopo(), and SetShape().
| void GEOM_Actor::SetOpacity | ( | vtkFloatingPointType | opa | ) |
References myHighlightProp, myPreHighlightProp, myShadingFaceProp, and myVertexActor.
| vtkFloatingPointType GEOM_Actor::GetOpacity | ( | ) |
References myShadingFaceProp.
| void GEOM_Actor::SetColor | ( | vtkFloatingPointType | r, |
| vtkFloatingPointType | g, | ||
| vtkFloatingPointType | b | ||
| ) |
References myIsolatedEdgeActor, myOneFaceEdgeActor, myShadingFaceProp, mySharedEdgeActor, and myVertexActor.
| void GEOM_Actor::GetColor | ( | vtkFloatingPointType & | r, |
| vtkFloatingPointType & | g, | ||
| vtkFloatingPointType & | b | ||
| ) |
References myShadingFaceProp.
| bool GEOM_Actor::IsInfinitive | ( | ) | [virtual] |
References isOnlyVertex, and myShape.
| void GEOM_Actor::Highlight | ( | bool | theIsHighlight | ) | [virtual] |
To map current selection to VTK representation
| bool GEOM_Actor::PreHighlight | ( | vtkInteractorStyle * | theInteractorStyle, |
| SVTK_SelectionEvent * | theSelectionEvent, | ||
| bool | theIsHighlight | ||
| ) | [virtual] |
To process prehighlight (called from SVTK_InteractorStyle)
| bool GEOM_Actor::Highlight | ( | vtkInteractorStyle * | theInteractorStyle, |
| SVTK_SelectionEvent * | theSelectionEvent, | ||
| bool | theIsHighlight | ||
| ) | [virtual] |
To process highlight (called from SVTK_InteractorStyle)
| void GEOM_Actor::SetVisibility | ( | int | theVisibility | ) | [virtual] |
| void GEOM_Actor::SetNbIsos | ( | const int | theNb[2] | ) | [virtual] |
| void GEOM_Actor::GetNbIsos | ( | int & | theNbU, |
| int & | theNbV | ||
| ) | [virtual] |
| void GEOM_Actor::SetVectorMode | ( | const bool | theMode | ) | [virtual] |
| bool GEOM_Actor::GetVectorMode | ( | ) | [virtual] |
| void GEOM_Actor::SetModified | ( | ) | [protected] |
| void GEOM_Actor::GetMatrix | ( | vtkCamera * | theCam, |
| vtkMatrix4x4 * | result | ||
| ) | [protected] |
References PAL_MESH_030_geometry.i, New(), and GEOM_tube_geom.p1.
| void GEOM_Actor::SetMapper | ( | vtkMapper * | theMapper | ) | [private, virtual] |
| void GEOM_Actor.operator= | ( | const GEOM_Actor & | ) | [private] |
TopoDS_Shape GEOM_Actor.myShape [private] |
int GEOM_Actor.myNbIsos[2] [private] |
bool GEOM_Actor.isOnlyVertex [private] |
float GEOM_Actor.myDeflection [private] |
bool GEOM_Actor.myIsForced [private] |
bool GEOM_Actor.myIsSelected [private] |
bool GEOM_Actor.myVectorMode [private] |
PDeviceActor GEOM_Actor.myVertexActor [private] |
PVertexSource GEOM_Actor.myVertexSource [private] |
PDeviceActor GEOM_Actor.myIsolatedEdgeActor [private] |
PEdgeSource GEOM_Actor.myIsolatedEdgeSource [private] |
PDeviceActor GEOM_Actor.myOneFaceEdgeActor [private] |
PEdgeSource GEOM_Actor.myOneFaceEdgeSource [private] |
PDeviceActor GEOM_Actor.mySharedEdgeActor [private] |
PEdgeSource GEOM_Actor.mySharedEdgeSource [private] |
PDeviceActor GEOM_Actor.myWireframeFaceActor [private] |
PWFaceSource GEOM_Actor.myWireframeFaceSource [private] |
PDeviceActor GEOM_Actor.myShadingFaceActor [private] |
PSFaceSource GEOM_Actor.myShadingFaceSource [private] |
PDeviceActor GEOM_Actor.myHighlightActor [private] |
vtkSmartPointer<vtkProperty> GEOM_Actor.myHighlightProp [private] |
vtkSmartPointer<vtkProperty> GEOM_Actor.myPreHighlightProp [private] |
vtkSmartPointer<vtkProperty> GEOM_Actor.myShadingFaceProp [private] |
PAppendFilter GEOM_Actor.myAppendFilter [private] |
PPolyDataMapper GEOM_Actor.myPolyDataMapper [private] |