Open CASCADE Technology 7.8.0
|
VTK holder class for OCC shapes to pass them through pipelines. More...
#include <IVtkTools_ShapeObject.hxx>
Public Types | |
typedef vtkInformationObjectBaseKey * | KeyPtr |
Public Member Functions | |
vtkTypeMacro (IVtkTools_ShapeObject, vtkDataObject) static IVtkTools_ShapeObject *New() | |
void | SetShapeSource (IVtkTools_ShapeDataSource *theDataSource) |
OCC shape source setter. | |
IVtkTools_ShapeDataSource * | GetShapeSource () const |
OCC shape source getter. | |
Static Public Member Functions | |
static vtkSmartPointer< IVtkTools_ShapeDataSource > | GetShapeSource (vtkActor *theActor) |
Get OCC shape source from VTK data from actor's information object by key. | |
static IVtkOCC_Shape::Handle | GetOccShape (vtkActor *theActor) |
Get OCC shape from VTK data from actor's information object by key. | |
static void | SetShapeSource (IVtkTools_ShapeDataSource *theDataSource, vtkDataSet *theData) |
Static method to set OCC shape source to VTK dataset in information object with key. | |
static void | SetShapeSource (IVtkTools_ShapeDataSource *theDataSource, vtkActor *theActor) |
Static method to set OCC shape source to VTK actor in information object with key. | |
static KeyPtr | getKey () |
Static method used by shape selection logic in order to establish a connection from vtkActor to OccShape instance. | |
Protected Member Functions | |
IVtkTools_ShapeObject () | |
virtual | ~IVtkTools_ShapeObject () |
VTK holder class for OCC shapes to pass them through pipelines.
It is descendant of vtkObject (data). Logically it is a one of milestones of VTK pipeline. It stores data of OCC shape (the OccShape instance) in vtkInformation object of vtkDataObject. Then pass it to the actors through pipelines, so selection logic can access OccShape easily given the actor instance.
|
protected |
|
protectedvirtual |
Static method used by shape selection logic in order to establish a connection from vtkActor to OccShape instance.
|
static |
Get OCC shape from VTK data from actor's information object by key.
IVtkTools_ShapeDataSource * IVtkTools_ShapeObject::GetShapeSource | ( | ) | const |
OCC shape source getter.
|
static |
Get OCC shape source from VTK data from actor's information object by key.
void IVtkTools_ShapeObject::SetShapeSource | ( | IVtkTools_ShapeDataSource * | theDataSource | ) |
OCC shape source setter.
|
static |
Static method to set OCC shape source to VTK actor in information object with key.
|
static |
Static method to set OCC shape source to VTK dataset in information object with key.
IVtkTools_ShapeObject::vtkTypeMacro | ( | IVtkTools_ShapeObject | , |
vtkDataObject | |||
) |