38 #ifndef vtkMultiVolume_h 39 #define vtkMultiVolume_h 41 #include <unordered_map> 44 #include "vtkRenderingVolumeModule.h" 73 this->SetVolume(
nullptr, port);
127 {
return this->TexToBBox.GetPointer(); };
133 {
return this->DataBounds.data(); };
136 {
return this->BoundsComputeTime.GetMTime(); };
167 bool VolumesChanged();
175 std::array<double, 6> ComputeAABounds(
double bounds[6],
abstract superclass for all actors, volumes and annotations
vtkMatrix4x4 * GetMatrix() override
Get a pointer to an internal vtkMatrix4x4.
vtkSmartPointer< vtkMatrix4x4 > TexToBBox
represents a volume (data & properties) in a rendered scene
represent and manipulate 4x4 transformation matrices
virtual void SetProperty(vtkVolumeProperty *property)
Set/Get the volume property.
vtkTypeUInt32 vtkMTimeType
abstract specification for Viewports
vtkMatrix4x4 * GetTextureMatrix()
Returns the transformation from texture coordinates to data cooridinates of the bounding-box.
record modification and/or execution time
vtkTimeStamp BoundsComputeTime
void RemoveVolume(int port)
Add / Remove a vtkVolume instance.
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkVolume.
virtual vtkVolumeProperty * GetProperty()
Set/Get the volume property.
Abstract class for a volume mapper.
abstract specification for renderers
window superclass for vtkRenderWindow
a simple class to control print indentation
vtkMTimeType GetMTime() override
Return the MTime also considering the property etc.
static vtkVolume * New()
Creates a Volume with the following defaults: origin(0,0,0) position=(0,0,0) scale=1 visibility=1 pic...
std::array< double, 6 > DataBounds
represents the common properties for rendering a volume.
vtkMatrix4x4 * GetMatrix() override
Get a pointer to an internal vtkMatrix4x4.
Represents a world axis-aligned bounding-box containing a set of volumes in a rendered scene...
void ComputeMatrix() override
The transformation matrix of this vtkProp3D is not user-definable, (only the registered vtkVolume ins...
std::unordered_map< int, vtkVolume * > Volumes
vtkMTimeType GetBoundsTime()
int RenderVolumetricGeometry(vtkViewport *viewport) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
double * GetDataBounds()
Total bounds in data coordinates.
double * GetBounds() override
Get the bounds - either all six at once (xmin, xmax, ymin, ymax, zmin, zmax) or one at a time...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Fast Simple Class for dealing with 3D bounds.