Go to the documentation of this file.
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(); };
vtkMatrix4x4 * GetMatrix() override
Get a pointer to an internal vtkMatrix4x4.
vtkSmartPointer< vtkMatrix4x4 > TexToBBox
void SetVolume(vtkVolume *volume, int port=0)
Add / Remove a vtkVolume instance.
vtkMTimeType GetBoundsTime()
represents a volume (data & properties) in a rendered scene
int RenderVolumetricGeometry(vtkViewport *vp) override
Since vtkMultiVolume acts like a proxy volume to compute the bounding box for its internal vtkVolume ...
vtkMatrix4x4 * GetMatrix() override
Get a pointer to an internal vtkMatrix4x4.
void ShallowCopy(vtkProp *prop) override
Checks whether the vtkProp passed is another vtkMultiVolume and tries to copy accordingly.
record modification and/or execution time
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Represents a world axis-aligned bounding-box containing a set of volumes in a rendered scene.
static vtkMultiVolume * New()
void RemoveVolume(int port)
~vtkMultiVolume() override
vtkTimeStamp BoundsComputeTime
window superclass for vtkRenderWindow
Fast Simple Class for dealing with 3D bounds.
vtkVolumeProperty * GetProperty() override
std::array< double, 6 > ComputeAABounds(double bounds[6], vtkMatrix4x4 *T) const
For a box defined by bounds in coordinate system X, compute its axis-aligned bounds in coordinate sys...
vtkVolume * FindVolume(int port)
Returns the vtkVolume registered in port.
vtkVolume * GetVolume(int port=0)
std::unordered_map< int, vtkVolume * > Volumes
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
double * GetDataBounds()
Total bounds in data coordinates.
double * GetBounds() override
Computes the bounds of the box containing all of the vtkVolume instances.
abstract specification for Viewports
void SetProperty(vtkVolumeProperty *property) override
Given that this class represents a bounding-box only there is no property directly associated with it...
abstract superclass for all actors, volumes and annotations
Abstract class for a volume mapper.
abstract specification for renderers
vtkMTimeType GetMTime() override
vtkMatrix4x4 * GetTextureMatrix()
Returns the transformation from texture coordinates to data cooridinates of the bounding-box.
std::array< double, 6 > DataBounds
bool VolumesChanged()
Checks for changes in the registered vtkVolume instances which could required the bounding-box to be ...
void ComputeMatrix() override
The transformation matrix of this vtkProp3D is not user-definable, (only the registered vtkVolume ins...
represents the common properties for rendering a volume.
vtkTypeUInt32 vtkMTimeType