Chaste
Build::
|
#include <AbstractActorGenerator.hpp>
Public Member Functions | |
AbstractActorGenerator () | |
virtual | ~AbstractActorGenerator () |
virtual void | AddActor (vtkSmartPointer< vtkRenderer > pRenderer)=0 |
void | SetShowEdges (bool show) |
void | SetShowPoints (bool show) |
void | SetShowVolume (bool show) |
void | SetEdgeColor (const c_vector< double, 3 > &rColor) |
void | SetPointColor (const c_vector< double, 3 > &rColor) |
void | SetVolumeColor (const c_vector< double, 3 > &rColor) |
void | SetVolumeOpacity (double opacity) |
void | SetPointSize (double size) |
void | SetEdgeSize (double size) |
void | SetDataLabel (const std::string &rLabel) |
Protected Attributes | |
vtkSmartPointer< vtkColorTransferFunction > | mpColorTransferFunction |
units::quantity< unit::length > | mLengthScale |
bool | mShowEdges |
bool | mShowPoints |
bool | mShowVolume |
c_vector< double, 3 > | mEdgeColor |
c_vector< double, 3 > | mPointColor |
c_vector< double, 3 > | mVolumeColor |
std::vector< c_vector< double, 3 > > | mViridisColorMap |
double | mVolumeOpacity |
double | mPointSize |
double | mEdgeSize |
std::string | mDataLabel |
This class generates Vtk actors for geometric features.
Definition at line 52 of file AbstractActorGenerator.hpp.
AbstractActorGenerator< DIM >::AbstractActorGenerator | ( | ) |
Constructor
Definition at line 69 of file AbstractActorGenerator.cpp.
References AbstractActorGenerator< DIM >::mpColorTransferFunction, AbstractActorGenerator< DIM >::mPointColor, and AbstractActorGenerator< DIM >::mVolumeColor.
|
virtual |
Destructor
Definition at line 355 of file AbstractActorGenerator.cpp.
|
pure virtual |
Add the Abstract actor to the renderer
pRenderer | the current renderer |
Implemented in RegularGridActorGenerator< DIM >, CellPopulationActorGenerator< DIM >, DiscreteContinuumMeshActorGenerator< DIM >, PartActorGenerator< DIM >, and VesselNetworkActorGenerator< DIM >.
void AbstractActorGenerator< DIM >::SetEdgeColor | ( | const c_vector< double, 3 > & | rColor | ) |
Set the edge color in RGB (e.g. (255,255,255) is white)
rColor | the edge color |
Definition at line 391 of file AbstractActorGenerator.cpp.
References AbstractActorGenerator< DIM >::mEdgeColor.
void AbstractActorGenerator< DIM >::SetPointColor | ( | const c_vector< double, 3 > & | rColor | ) |
Set the point color in RGB (e.g. (255,255,255) is white)
rColor | the point color |
Definition at line 397 of file AbstractActorGenerator.cpp.
References AbstractActorGenerator< DIM >::mPointColor.
void AbstractActorGenerator< DIM >::SetShowEdges | ( | bool | show | ) |
Set whether to show the edges
show | whether to show the edges |
Definition at line 361 of file AbstractActorGenerator.cpp.
References AbstractActorGenerator< DIM >::mShowEdges.
void AbstractActorGenerator< DIM >::SetShowPoints | ( | bool | show | ) |
Set whether to show the points
show | whether to show the points |
Definition at line 367 of file AbstractActorGenerator.cpp.
References AbstractActorGenerator< DIM >::mShowPoints.
void AbstractActorGenerator< DIM >::SetShowVolume | ( | bool | show | ) |
Set whether to show the volume
show | whether to show the volumes |
Definition at line 385 of file AbstractActorGenerator.cpp.
References AbstractActorGenerator< DIM >::mShowVolume.
void AbstractActorGenerator< DIM >::SetVolumeColor | ( | const c_vector< double, 3 > & | rColor | ) |
Set the volume color in RGB (e.g. (255,255,255) is white)
rColor | the volume color |
Definition at line 403 of file AbstractActorGenerator.cpp.
References AbstractActorGenerator< DIM >::mVolumeColor.
void AbstractActorGenerator< DIM >::SetVolumeOpacity | ( | double | opacity | ) |
Set the opacity for the volume
opacity | the opacity for the volume |
Definition at line 409 of file AbstractActorGenerator.cpp.
References AbstractActorGenerator< DIM >::mVolumeOpacity.
|
protected |
The edge color in RGB
Definition at line 86 of file AbstractActorGenerator.hpp.
Referenced by PartActorGenerator< DIM >::AddActor(), VesselNetworkActorGenerator< DIM >::AddActor(), RegularGridActorGenerator< DIM >::AddActor(), and AbstractActorGenerator< DIM >::SetEdgeColor().
|
protected |
Scale features using this length. e.g. set to micron if we want to render features in microns
Definition at line 66 of file AbstractActorGenerator.hpp.
|
protected |
The color lookup
Definition at line 60 of file AbstractActorGenerator.hpp.
Referenced by AbstractActorGenerator< DIM >::AbstractActorGenerator(), VesselNetworkActorGenerator< DIM >::AddActor(), and RegularGridActorGenerator< DIM >::AddActor().
|
protected |
The point color in RGB
Definition at line 91 of file AbstractActorGenerator.hpp.
Referenced by AbstractActorGenerator< DIM >::AbstractActorGenerator(), VesselNetworkActorGenerator< DIM >::AddActor(), PartActorGenerator< DIM >::AddActor(), RegularGridActorGenerator< DIM >::AddActor(), and AbstractActorGenerator< DIM >::SetPointColor().
|
protected |
Show the edges, using a tube filter
Definition at line 71 of file AbstractActorGenerator.hpp.
Referenced by PartActorGenerator< DIM >::AddActor(), VesselNetworkActorGenerator< DIM >::AddActor(), RegularGridActorGenerator< DIM >::AddActor(), and AbstractActorGenerator< DIM >::SetShowEdges().
|
protected |
Show the points, using a glyph filter
Definition at line 76 of file AbstractActorGenerator.hpp.
Referenced by PartActorGenerator< DIM >::AddActor(), VesselNetworkActorGenerator< DIM >::AddActor(), RegularGridActorGenerator< DIM >::AddActor(), and AbstractActorGenerator< DIM >::SetShowPoints().
|
protected |
Show the volume
Definition at line 81 of file AbstractActorGenerator.hpp.
Referenced by PartActorGenerator< DIM >::AddActor(), VesselNetworkActorGenerator< DIM >::AddActor(), RegularGridActorGenerator< DIM >::AddActor(), and AbstractActorGenerator< DIM >::SetShowVolume().
|
protected |
The volume color in RGB
Definition at line 96 of file AbstractActorGenerator.hpp.
Referenced by AbstractActorGenerator< DIM >::AbstractActorGenerator(), VesselNetworkActorGenerator< DIM >::AddActor(), PartActorGenerator< DIM >::AddActor(), RegularGridActorGenerator< DIM >::AddActor(), and AbstractActorGenerator< DIM >::SetVolumeColor().
|
protected |
The volume opacity
Definition at line 103 of file AbstractActorGenerator.hpp.
Referenced by PartActorGenerator< DIM >::AddActor(), VesselNetworkActorGenerator< DIM >::AddActor(), RegularGridActorGenerator< DIM >::AddActor(), and AbstractActorGenerator< DIM >::SetVolumeOpacity().