#include <VTKViewer_Actor.h>
Public Member Functions | |
vtkTypeMacro (VTKViewer_Actor, vtkLODActor) | |
virtual const char * | getName () |
Get its name. More... | |
virtual void | setName (const char *theName) |
Name the VTKViewer_Actor. More... | |
virtual void | SetOpacity (double theOpacity) |
Change opacity. More... | |
virtual double | GetOpacity () |
Get current opacity. More... | |
virtual void | SetColor (double r, double g, double b) |
Change color. More... | |
virtual void | GetColor (double &r, double &g, double &b) |
Get current color. More... | |
virtual void | SetColor (const double theRGB[3]) |
Change color. More... | |
virtual void | SetMaterial (std::vector< vtkProperty * > theProps) |
Change material. More... | |
virtual vtkProperty * | GetFrontMaterial () |
Get current front material. More... | |
virtual vtkProperty * | GetBackMaterial () |
Get current back material. More... | |
virtual int | GetNodeObjId (int theVtkID) |
Maps VTK index of a node to corresponding object index. More... | |
virtual double * | GetNodeCoord (int theObjID) |
Get coordinates of a node for given object index. More... | |
virtual int | GetElemObjId (int theVtkID) |
Maps VTK index of a cell to corresponding object index. More... | |
virtual vtkCell * | GetElemCell (int theObjID) |
Get corresponding #vtkCell for given object index. More... | |
virtual int | GetObjDimension (const int theObjId) |
Get dimension of corresponding mesh element. More... | |
virtual void | SetMapper (vtkMapper *theMapper) |
To insert some additional filters and then sets the given #vtkMapper. More... | |
virtual vtkDataSet * | GetInput () |
Allows to get initial #vtkDataSet. More... | |
virtual void | SetTransform (VTKViewer_Transform *theTransform) |
Apply view transformation. More... | |
virtual vtkMTimeType | GetMTime () |
To calculatate last modified time. More... | |
virtual void | SetRepresentation (int theMode) |
Set representation (VTK_SURFACE, VTK_POINTS, VTK_WIREFRAME and so on) More... | |
virtual int | GetRepresentation () |
Get current representation mode. More... | |
virtual int | getDisplayMode () |
Get current display mode (obsolete) More... | |
virtual void | setDisplayMode (int theMode) |
Set display mode (obsolete) More... | |
void | SetInfinitive (bool theIsInfinite) |
Set infinive flag. More... | |
virtual bool | IsInfinitive () |
Get infinive flag. More... | |
virtual double * | GetBounds () |
To calcualte current bounding box. More... | |
void | GetBounds (double bounds[6]) |
To calcualte current bounding box. More... | |
virtual bool | IsSetCamera () const |
virtual bool | IsResizable () const |
virtual void | SetSize (const double) |
virtual void | SetCamera (vtkCamera *) |
void | SetResolveCoincidentTopology (bool theIsResolve) |
Set ResolveCoincidentTopology flag. More... | |
void | SetPolygonOffsetParameters (double factor, double units) |
Set ResolveCoincidentTopology parameters. More... | |
void | GetPolygonOffsetParameters (double &factor, double &units) |
Get current ResolveCoincidentTopology parameters. More... | |
virtual void | Render (vtkRenderer *, vtkMapper *) |
virtual double | GetShrinkFactor () |
Get current shrink factor. More... | |
virtual bool | IsShrunkable () |
Is the actor is shrunkable. More... | |
virtual bool | IsShrunk () |
Is the actor is shrunk. More... | |
virtual void | SetShrink () |
Insert shrink filter into pipeline. More... | |
virtual void | UnShrink () |
Remove shrink filter from pipeline. More... | |
virtual void | AddToRender (vtkRenderer *theRendere) |
To publish the actor an all its internal devices. More... | |
virtual void | RemoveFromRender (vtkRenderer *theRendere) |
To remove the actor an all its internal devices. More... | |
virtual void | GetChildActors (vtkActorCollection *) |
Used to obtain all dependent actors. More... | |
virtual void | EnableSelection (bool enable) |
Is notified on enabling/disabling selection. More... | |
virtual bool | hasHighlight () |
Ask, if the descendant of the VTKViewer_Actor will implement its own highlight or not. More... | |
virtual bool | isHighlighted () |
Ask, if the VTKViewer_Actor is already highlighted. More... | |
virtual bool | isPreselected () |
Ask, if the VTKViewer_Actor is already preselected. More... | |
virtual void | SetPreSelected (bool thePreselect=false) |
Set preselection mode. More... | |
virtual void | highlight (bool theHighlight) |
Just to update visibility of the highlight devices. More... | |
void | SetPreviewProperty (vtkProperty *theProperty) |
virtual void | SetQuadraticArcMode (bool theFlag) |
Setting for displaying quadratic elements. More... | |
virtual bool | GetQuadraticArcMode () const |
virtual void | SetQuadraticArcAngle (double theMaxAngle) |
virtual double | GetQuadraticArcAngle () const |
virtual vtkDataSet * | GetHighlightedDataSet () |
Return pointer to the dataset, which used to calculation of the bounding box of the actor. More... | |
Static Public Member Functions | |
static VTKViewer_Actor * | New () |
Protected Member Functions | |
void | InitPipeLine (vtkMapper *theMapper) |
VTKViewer_Actor () | |
~VTKViewer_Actor () | |
Protected Attributes | |
bool | myIsResolveCoincidentTopology |
double | myPolygonOffsetFactor |
double | myPolygonOffsetUnits |
std::string | myName |
double | myOpacity |
int | myDisplayMode |
bool | myIsInfinite |
bool | myStoreMapping |
VTKViewer_GeometryFilter * | myGeomFilter |
VTKViewer_TransformFilter * | myTransformFilter |
std::vector < vtkPassThroughFilter * > | myPassFilter |
int | myRepresentation |
vtkProperty * | myProperty |
vtkProperty * | PreviewProperty |
bool | myIsPreselected |
bool | myIsHighlighted |
|
protected |
Constructor
|
protected |
Destructor
|
virtual |
To publish the actor an all its internal devices
Reimplemented in SALOME_Actor.
|
inlinevirtual |
|
virtual |
Get current back material
|
virtual |
void VTKViewer_Actor::GetBounds | ( | double | theBounds[6] | ) |
|
virtual |
Used to obtain all dependent actors
|
virtual |
Get color
|
virtual |
|
virtual |
Get corresponding #vtkCell for given object index
|
virtual |
Maps VTK index of a cell to corresponding object index
|
virtual |
Get current front material
|
virtual |
Return pointer to the dataset, which used to calculation of the bounding box of the actor. By default it is the input dataset.
References GetInput().
|
virtual |
Allows to get initial #vtkDataSet
|
virtual |
To calculatate last modified time
|
virtual |
Get coordinates of a node for given object index
|
virtual |
Maps VTK index of a node to corresponding object index
|
virtual |
|
virtual |
void VTKViewer_Actor::GetPolygonOffsetParameters | ( | double & | factor, |
double & | units | ||
) |
Get polygon offset parameters
factor,units | - Opengl polygon offset parameters |
|
virtual |
Return Max angle of the representation 2D quadratic element as arked polygon
References VTKViewer_GeometryFilter::GetQuadraticArcAngle(), and myGeomFilter.
|
virtual |
Return true if 2D quadratic element displayed as arked polygon
References VTKViewer_GeometryFilter::GetQuadraticArcMode(), and myGeomFilter.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Just to update visibility of the highlight devices
Reimplemented in SALOME_Actor.
|
protected |
Initialization
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
static |
|
virtual |
To remove the actor an all its internal devices
Reimplemented in SALOME_Actor.
|
virtual |
Renders actor
|
virtual |
|
virtual |
Change color
|
virtual |
Change color
|
virtual |
Change display mode
void VTKViewer_Actor::SetInfinitive | ( | bool | theIsInfinite | ) |
Infinitive means actor without size (point for example), which is not taken into account in calculation of boundaries of the scene
|
virtual |
To insert some additional filters and then sets the given #vtkMapper
|
virtual |
Change material
|
virtual |
|
virtual |
void VTKViewer_Actor::SetPolygonOffsetParameters | ( | double | factor, |
double | units | ||
) |
Set polygon offset parameters
factor,units | - Opengl polygon offset parameters |
|
virtual |
Set preselection mode
void VTKViewer_Actor::SetPreviewProperty | ( | vtkProperty * | theProperty | ) |
|
virtual |
Set Max angle for representation 2D quadratic element as arked polygon
References myGeomFilter, and VTKViewer_GeometryFilter::SetQuadraticArcAngle().
|
virtual |
On/Off representation 2D quadratic element as arked polygon
References myGeomFilter, and VTKViewer_GeometryFilter::SetQuadraticArcMode().
|
virtual |
Set representation (VTK_SURFACE, VTK_POINTS, VTK_WIREFRAME and so on) param theMode - new mode
References VTKViewer::Representation::Insideframe, VTKViewer::Representation::Points, VTKViewer::Representation::Surface, VTKViewer::Representation::SurfaceWithEdges, VTKViewer_POINT_SIZE, and VTKViewer::Representation::Wireframe.
void VTKViewer_Actor::SetResolveCoincidentTopology | ( | bool | theIsResolve | ) |
Set ResolveCoincidentTopology flag
theIsResolve | - new flag value |
|
virtual |
Insert shrink filter into pipeline
|
virtual |
|
virtual |
Apply view transformation
theTransform | - view transformation |
Reimplemented in SALOME_Actor.
|
virtual |
Remove shrink filter from pipeline
VTKViewer_Actor::vtkTypeMacro | ( | VTKViewer_Actor | , |
vtkLODActor | |||
) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |