The class is a basic one for all SALOME VTK presentation. More...
#include <SALOME_Actor.h>

Public Member Functions | |
| vtkTypeMacro (SALOME_Actor, VTKViewer_Actor) virtual Standard_Boolean hasIO() | |
| To check, if the SALOME_Actor has a reference to SALOME_InteractiveObject. More... | |
| virtual const | Handle (SALOME_InteractiveObject) &getIO() |
| Get correspoinding reference to SALOME_InteractiveObject. More... | |
| virtual void | setIO (const Handle(SALOME_InteractiveObject)&theIO) |
| Set reference to SALOME_InteractiveObject. More... | |
| virtual void | setName (const char *theName) |
| Name the SALOME_Actor. More... | |
| virtual void | SetTransform (VTKViewer_Transform *theTransform) |
| Apply view transformation. More... | |
| virtual void | SetPosition (double _arg1, double _arg2, double _arg3) |
| Apply additional position. More... | |
| virtual void | SetPosition (double _arg[3]) |
| Apply additional position. More... | |
| virtual void | SetVisibility (int) |
| Visibility management. More... | |
| virtual bool | ShouldBeDisplayed () |
| Gets know whether the actor should be displayed or not. 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... | |
| vtkRenderer * | GetRenderer () |
| Get reference on renderer where it is published. More... | |
| virtual void | SetInteractor (vtkRenderWindowInteractor *theInteractor) |
| To set interactor in order to use vtkInteractorObserver devices. More... | |
| virtual void | Update () |
| Put a request to redraw the view. More... | |
| virtual void | SetSelector (SVTK_Selector *theSelector) |
| Set selector in order to the actor at any time can restore current selection. More... | |
| virtual void | highlight (bool theHighlight) |
| Just to update visibility of the highlight devices. More... | |
| virtual void | Highlight (bool theHighlight) |
| To map current selection to VTK representation. More... | |
| virtual bool | PreHighlight (vtkInteractorStyle *theInteractorStyle, SVTK_SelectionEvent *theSelectionEvent, bool theIsHighlight) |
| To process prehighlight (called from SVTK_InteractorStyle) More... | |
| virtual bool | Highlight (vtkInteractorStyle *theInteractorStyle, SVTK_SelectionEvent *theSelectionEvent, bool theIsHighlight) |
| To process highlight (called from SVTK_InteractorStyle) More... | |
| virtual bool | IsDisplayNameActor () const |
| To get flag of displaying of name actor. More... | |
| virtual void | SetIsDisplayNameActor (bool theIsDisplayNameActor) |
| To set flag of displaying of name actor. More... | |
| virtual void | SetNameActorText (const char *theText) |
| To set text of name actor. More... | |
| virtual void | SetNameActorOffset (double theOffset[2]) |
| To set offset of name actor. More... | |
| virtual void | GetNameActorSize (vtkRenderer *theRenderer, double theSize[2]) const |
| To get size of name actor. More... | |
| virtual void | UpdateNameActors () |
| To update visibility of name actors. More... | |
| virtual void | SetMarkerStd (VTK::MarkerType, VTK::MarkerScale) |
| Set standard point marker. More... | |
| virtual void | SetMarkerTexture (int, VTK::MarkerTexture) |
| Set custom point marker. More... | |
| virtual VTK::MarkerType | GetMarkerType () |
| Get type of the point marker. More... | |
| virtual VTK::MarkerScale | GetMarkerScale () |
| Get scale of the point marker. More... | |
| virtual int | GetMarkerTexture () |
| Get texture identifier of the point marker. More... | |
| void | SetPointPicker (vtkPointPicker *thePointPicker) |
| To set up a picker for nodal selection (initialized by SVTK_Renderer::AddActor) More... | |
| void | SetCellPicker (vtkCellPicker *theCellPicker) |
| To set up a picker for cell selection (initialized by SVTK_Renderer::AddActor) More... | |
| void | SetPointAreaPicker (SVTK_AreaPicker *theAreaPicker) |
| To set up a picker for point rectangle selection (initialized by SVTK_Renderer::AddActor) More... | |
| void | SetCellAreaPicker (SVTK_AreaPicker *theAreaPicker) |
| To set up a picker for cell rectangle selection (initialized by SVTK_Renderer::AddActor) More... | |
| double * | GetGravityCenter (int) |
| To find a gravity center of object. More... | |
| void | SetPreHighlightProperty (vtkProperty *theProperty) |
| To set up a prehighlight property (initialized by SVTK_Renderer::AddActor) More... | |
| void | SetHighlightProperty (vtkProperty *theProperty) |
| To set up a highlight property (initialized by SVTK_Renderer::AddActor) More... | |
Public Member Functions inherited from VTKViewer_Actor | |
| 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 vtkIdType | GetNodeObjId (vtkIdType theVtkID) |
| Maps VTK index of a node to corresponding object index. More... | |
| virtual double * | GetNodeCoord (vtkIdType theObjID) |
| Get coordinates of a node for given object index. More... | |
| virtual vtkIdType | GetNodeVtkId (vtkIdType theObjID) |
| Maps object index of a node to corresponding VTK index. More... | |
| virtual vtkIdType | GetElemObjId (vtkIdType theVtkID) |
| Maps VTK index of a cell to corresponding object index. More... | |
| virtual vtkCell * | GetElemCell (vtkIdType theObjID) |
| Get corresponding #vtkCell for given object index. More... | |
| virtual int | GetObjDimension (const vtkIdType 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) |
| 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 SALOME_Actor * | New () |
Static Public Member Functions inherited from VTKViewer_Actor | |
| static VTKViewer_Actor * | New () |
| static void | GetDefaultPolygonOffsetParameters (double &factor, double &units) |
| Get default ResolveCoincidentTopology parameters. More... | |
Protected Member Functions | |
| Handle (SALOME_InteractiveObject) myIO | |
| SALOME_Actor () | |
| ~SALOME_Actor () | |
Protected Member Functions inherited from VTKViewer_Actor | |
| void | InitPipeLine (vtkMapper *theMapper) |
| VTKViewer_Actor () | |
| ~VTKViewer_Actor () | |
The class is a basic one for all SALOME VTK presentation.
Abstract class of SALOME Objects in VTK.
It provide highlight and prehighlight capabilites, common way to publish and remove VTK presentation, mapping of VTK and object IDs and so on.
|
protected |
|
protected |
Destructor
|
virtual |
To publish the actor an all its internal devices.
Publishes the actor in all its internal devices
Reimplemented from VTKViewer_Actor.
References myHighlightActor, myNameActor, myOutlineActor, myPreHighlightActor, and myRenderer.
| double * SALOME_Actor::GetGravityCenter | ( | int | theObjId | ) |
To find a gravity center of object.
To find a gravity center of object
| theObjId | - identification of object |
References VTKViewer_Actor::GetElemCell().
|
virtual |
Get scale of the point marker.
Get scale of the point marker
References myPreHighlightActor.
|
virtual |
Get texture identifier of the point marker.
Get texture identifier of the point marker
References myPreHighlightActor.
|
virtual |
Get type of the point marker.
Get type of the point marker
References myPreHighlightActor.
|
virtual |
To get size of name actor.
To get size of name actor
| theRenderer | - renderer |
| theSize | - size of name actor |
References myNameActor.
| vtkRenderer * SALOME_Actor::GetRenderer | ( | ) |
Get reference on renderer where it is published.
References myRenderer.
|
virtual |
Get correspoinding reference to SALOME_InteractiveObject.
|
protected |
|
virtual |
Just to update visibility of the highlight devices.
Updates visibility of the highlight devices
Reimplemented from VTKViewer_Actor.
References VTKViewer_Actor::GetHighlightedDataSet(), myOutline, and myOutlineActor.
|
virtual |
To map current selection to VTK representation.
To map current selection to VTK representation
References ActorSelection, BallSelection, CellSelection, EdgeOfCellSelection, EdgeSelection, Elem0DSelection, FaceSelection, highlight(), myHighlightActor, myOutlineActor, mySelectionMode, mySelector, NodeSelection, and VolumeSelection.
|
virtual |
To process highlight (called from SVTK_InteractorStyle)
To process highlight (called from SVTK_InteractorStyle)
< TODO: conversion from size_t to int
< TODO: conversion from size_t to int
< TODO: conversion from size_t to int
References ActorSelection, BallSelection, CellSelection, EdgeOfCellSelection, EdgeSelection, Elem0DSelection, FaceSelection, VTKViewer_Actor::GetBounds(), VTKViewer_Actor::GetElemObjId(), VTKViewer_Actor::GetNodeObjId(), myCellAreaPicker, myCellPicker, myHighlightActor, SVTK_SelectionEvent::myIsPolygon, SVTK_SelectionEvent::myIsRectangle, SVTK_SelectionEvent::myIsShift, SVTK_SelectionEvent::myLastX, SVTK_SelectionEvent::myLastY, myOutlineActor, myPointAreaPicker, myPointPicker, SVTK_SelectionEvent::myPolygonPoints, mySelectionMode, SVTK_SelectionEvent::mySelectionMode, mySelector, SVTK_SelectionEvent::myX, SVTK_SelectionEvent::myY, NodeSelection, SVTK_AreaPicker::PolygonMode, SVTK_AreaPicker::RectangleMode, and VolumeSelection.
|
virtual |
To get flag of displaying of name actor.
To get flag of displaying of name actor
References myIsDisplayNameActor.
|
static |
|
virtual |
To process prehighlight (called from SVTK_InteractorStyle)
To process prehighlight (called from SVTK_InteractorStyle)
References ActorSelection, BallSelection, CellSelection, EdgeOfCellSelection, EdgeSelection, Elem0DSelection, FaceSelection, VTK::ActorCollectionCopy::GetActors(), VTKViewer_Actor::GetElemObjId(), VTKViewer_Actor::GetNodeObjId(), myCellPicker, VTKViewer_Actor::myIsPreselected, myPointPicker, myPreHighlightActor, mySelectionMode, SVTK_SelectionEvent::mySelectionMode, mySelector, SVTK_SelectionEvent::myX, SVTK_SelectionEvent::myY, NodeSelection, VTKViewer_Actor::SetPreSelected(), and VolumeSelection.
|
virtual |
To remove the actor an all its internal devices.
Removes the actor from all its internal devices
Reimplemented from VTKViewer_Actor.
References myHighlightActor, myNameActor, myOutlineActor, and myPreHighlightActor.
| void SALOME_Actor::SetCellAreaPicker | ( | SVTK_AreaPicker * | theAreaPicker | ) |
To set up a picker for cell rectangle selection (initialized by SVTK_Renderer::AddActor)
To set up a picker for cell rectangle of polygonal selection (initialized by SVTK_Renderer::AddActor)
| theAreaPicker | - new picker |
References myCellAreaPicker.
| void SALOME_Actor::SetCellPicker | ( | vtkCellPicker * | theCellPicker | ) |
To set up a picker for cell selection (initialized by SVTK_Renderer::AddActor)
To set up a picker for cell selection (initialized by SVTK_Renderer::AddActor)
| theCellPicker | - new picker |
References myCellPicker.
| void SALOME_Actor::SetHighlightProperty | ( | vtkProperty * | theProperty | ) |
To set up a highlight property (initialized by SVTK_Renderer::AddActor)
To set up a highlight property (initialized by SVTK_Renderer::AddActor)
References myHighlightActor.
|
virtual |
To set interactor in order to use vtkInteractorObserver devices.
Sets interactor in order to use vtkInteractorObserver devices
| theInteractor | - new interactor |
References myInteractor.
|
virtual |
Set reference to SALOME_InteractiveObject.
Sets reference to SALOME_InteractiveObject
| theIO | - new SALOME_InteractiveObject |
|
virtual |
To set flag of displaying of name actor.
To set flag of displaying of name actor
| theIsDisplayNameActor | flag to display or not to display name actor |
References QtxResourceMgr::booleanValue(), myIsDisplayNameActor, SUIT_Session::resourceMgr(), SUIT_Session::session(), and UpdateNameActors().
|
virtual |
Set standard point marker.
Set standard point marker
| theMarkerType | type of the marker |
| theMarkerScale | scale of the marker |
References myHighlightActor, and myPreHighlightActor.
|
virtual |
Set custom point marker.
Set custom point marker
| theMarkerId | id of the marker texture |
| theMarkerTexture | marker texture |
References myHighlightActor, and myPreHighlightActor.
|
virtual |
Name the SALOME_Actor.
Sets name the SALOME_Actor
| theName | - new name |
Reimplemented from VTKViewer_Actor.
References myNameActor.
|
virtual |
To set offset of name actor.
To set offset of name actor
| theOffset | - offset of name actor |
References myNameActor.
|
virtual |
To set text of name actor.
To set text of name actor
| theText | - text of name actor |
References myNameActor.
| void SALOME_Actor::SetPointAreaPicker | ( | SVTK_AreaPicker * | theAreaPicker | ) |
To set up a picker for point rectangle selection (initialized by SVTK_Renderer::AddActor)
To set up a picker for point rectangle or polygonal selection (initialized by SVTK_Renderer::AddActor)
| theAreaPicker | - new picker |
References myPointAreaPicker.
| void SALOME_Actor::SetPointPicker | ( | vtkPointPicker * | thePointPicker | ) |
To set up a picker for nodal selection (initialized by SVTK_Renderer::AddActor)
To set up a picker for nodal selection (initialized by SVTK_Renderer::AddActor)
| thePointPicker | - new picker |
References myPointPicker.
|
virtual |
Apply additional position.
Apply additional position
References myHighlightActor, myOutlineActor, and myPreHighlightActor.
|
virtual |
| void SALOME_Actor::SetPreHighlightProperty | ( | vtkProperty * | theProperty | ) |
To set up a prehighlight property (initialized by SVTK_Renderer::AddActor)
To set up a prehighlight property (initialized by SVTK_Renderer::AddActor)
References myPreHighlightActor.
|
virtual |
Set selector in order to the actor at any time can restore current selection.
Set selector in order to the actor at any time can restore current selection
| theSelector | - new selector |
References mySelector.
|
virtual |
Apply view transformation.
Apply view transformation
| theTransform | - transformation |
Reimplemented from VTKViewer_Actor.
References myHighlightActor, myOutlineActor, and myPreHighlightActor.
|
virtual |
Visibility management.
Shows/hides actor
| theVisibility | - new visibility state |
References ActorSelection, VTKViewer_Actor::hasHighlight(), VTKViewer_Actor::isHighlighted(), myHighlightActor, VTKViewer_Actor::myIsPreselected, myOutlineActor, myPreHighlightActor, mySelector, and UpdateNameActors().
|
virtual |
Gets know whether the actor should be displayed or not.
Gets know whether the actor should be displayed or not
|
virtual |
|
virtual |
To update visibility of name actors.
Update visibility of name actors
References VTK::ActorCollectionCopy::GetActors(), GetRenderer(), IsDisplayNameActor(), and myNameActor.
| SALOME_Actor::vtkTypeMacro | ( | SALOME_Actor | , |
| VTKViewer_Actor | |||
| ) |
To check, if the SALOME_Actor has a reference to SALOME_InteractiveObject.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |