Open CASCADE Technology
7.0.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, vtkObject) static IVtkTools_ShapeObject *New() | |
void | SetShapeSource (IVtkTools_ShapeDataSource *theDataSource) |
OCC shape source setter. More... | |
IVtkTools_ShapeDataSource * | GetShapeSource () const |
OCC shape source getter. More... | |
Static Public Member Functions | |
static IVtkTools_ShapeDataSource * | GetShapeSource (vtkActor *theActor) |
Get OCC shape source from VTK data from actor's information object by key. More... | |
static IVtkOCC_Shape::Handle | GetOccShape (vtkActor *theActor) |
Get OCC shape from VTK data from actor's information object by key. More... | |
static void | SetShapeSource (IVtkTools_ShapeDataSource *theDataSource, vtkDataSet *theData) |
Static method to set OCC shape source to VTK dataset in information object with key. More... | |
static void | SetShapeSource (IVtkTools_ShapeDataSource *theDataSource, vtkActor *theActor) |
Static method to set OCC shape source to VTK actor in information object with key. More... | |
static KeyPtr | getKey () |
Static method used by shape selection logic in order to establish a connection from vtkActor to OccShape instance. More... | |
Protected Member Functions | |
IVtkTools_ShapeObject () | |
~IVtkTools_ShapeObject () | |
VTK holder class for OCC shapes to pass them through pipelines.
It is descendent 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.
typedef vtkInformationObjectBaseKey* IVtkTools_ShapeObject::KeyPtr |
|
protected |
|
protected |
|
static |
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.
|
static |
Get OCC shape source from VTK data from actor's information object by key.
IVtkTools_ShapeDataSource* IVtkTools_ShapeObject::GetShapeSource | ( | ) | const |
OCC shape source getter.
|
static |
Static method to set OCC shape source to VTK dataset in information object with key.
|
static |
Static method to set OCC shape source to VTK actor in information object with key.
void IVtkTools_ShapeObject::SetShapeSource | ( | IVtkTools_ShapeDataSource * | theDataSource | ) |
OCC shape source setter.
IVtkTools_ShapeObject::vtkTypeMacro | ( | IVtkTools_ShapeObject | , |
vtkObject | |||
) |