ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
vtkBoundedVolumeSource Class Reference

#include <vtkBoundedVolumeSource.h>

Inheritance diagram for vtkBoundedVolumeSource:
Collaboration diagram for vtkBoundedVolumeSource:

Public Types

enum  RefinementModes { USE_RESOLUTION , USE_CELL_SIZE }
 

Public Member Functions

 vtkTypeMacro (vtkBoundedVolumeSource, vtkImageAlgorithm)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
 vtkSetVector3Macro (Origin, double)
 
 vtkGetVector3Macro (Origin, double)
 
 vtkSetVector3Macro (Scale, double)
 
 vtkGetVector3Macro (Scale, double)
 
 vtkSetClampMacro (RefinementMode, int, USE_RESOLUTION, USE_CELL_SIZE)
 
 vtkGetMacro (RefinementMode, int)
 
 vtkSetVector3Macro (Resolution, int)
 
 vtkGetVector3Macro (Resolution, int)
 
 vtkSetMacro (CellSize, double)
 
 vtkGetMacro (CellSize, double)
 
 vtkSetClampMacro (Padding, double, 0, VTK_DOUBLE_MAX)
 
 vtkGetMacro (Padding, double)
 

Static Public Member Functions

static vtkBoundedVolumeSourceNew ()
 
static bool SetImageParameters (vtkImageData *image, const vtkBoundingBox &bbox, const vtkVector3i &resolution)
 
static bool SetImageParameters (vtkImageData *image, const vtkBoundingBox &bbox, const double cellSize)
 

Protected Member Functions

 vtkBoundedVolumeSource ()
 
 ~vtkBoundedVolumeSource () override
 
int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
 
void ExecuteDataWithInformation (vtkDataObject *data, vtkInformation *outInfo) override
 

Protected Attributes

double Origin [3]
 
double Scale [3]
 
int RefinementMode
 
int Resolution [3]
 
double CellSize
 
double Padding
 

Detailed Description

Definition at line 16 of file vtkBoundedVolumeSource.h.

Member Enumeration Documentation

◆ RefinementModes

Enumerator
USE_RESOLUTION 
USE_CELL_SIZE 

Definition at line 39 of file vtkBoundedVolumeSource.h.

Constructor & Destructor Documentation

◆ vtkBoundedVolumeSource()

vtkBoundedVolumeSource::vtkBoundedVolumeSource ( )
protected

◆ ~vtkBoundedVolumeSource()

vtkBoundedVolumeSource::~vtkBoundedVolumeSource ( )
overrideprotected

Definition at line 32 of file vtkBoundedVolumeSource.cpp.

Member Function Documentation

◆ ExecuteDataWithInformation()

void vtkBoundedVolumeSource::ExecuteDataWithInformation ( vtkDataObject *  data,
vtkInformation *  outInfo 
)
overrideprotected

◆ New()

static vtkBoundedVolumeSource* vtkBoundedVolumeSource::New ( )
static

◆ PrintSelf()

void vtkBoundedVolumeSource::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
override

◆ RequestInformation()

int vtkBoundedVolumeSource::RequestInformation ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
overrideprotected

◆ SetImageParameters() [1/2]

bool vtkBoundedVolumeSource::SetImageParameters ( vtkImageData *  image,
const vtkBoundingBox &  bbox,
const double  cellSize 
)
static

Definition at line 123 of file vtkBoundedVolumeSource.cpp.

References cloudViewer::utility::ceil(), image, and origin.

◆ SetImageParameters() [2/2]

bool vtkBoundedVolumeSource::SetImageParameters ( vtkImageData *  image,
const vtkBoundingBox &  bbox,
const vtkVector3i &  resolution 
)
static

Convenience methods that setup a image extents, origin and spacing given the bounding box, and either the target image resolution or unit cell size.

Definition at line 97 of file vtkBoundedVolumeSource.cpp.

References image, and origin.

Referenced by ExecuteDataWithInformation(), vtkBoundedPlaneSource::RequestData(), and RequestInformation().

◆ vtkGetMacro() [1/3]

vtkBoundedVolumeSource::vtkGetMacro ( CellSize  ,
double   
)

◆ vtkGetMacro() [2/3]

vtkBoundedVolumeSource::vtkGetMacro ( Padding  ,
double   
)

◆ vtkGetMacro() [3/3]

vtkBoundedVolumeSource::vtkGetMacro ( RefinementMode  ,
int   
)

◆ vtkGetVector3Macro() [1/3]

vtkBoundedVolumeSource::vtkGetVector3Macro ( Origin  ,
double   
)

◆ vtkGetVector3Macro() [2/3]

vtkBoundedVolumeSource::vtkGetVector3Macro ( Resolution  ,
int   
)

◆ vtkGetVector3Macro() [3/3]

vtkBoundedVolumeSource::vtkGetVector3Macro ( Scale  ,
double   
)

◆ vtkSetClampMacro() [1/2]

vtkBoundedVolumeSource::vtkSetClampMacro ( Padding  ,
double  ,
,
VTK_DOUBLE_MAX   
)

Specify the padding to use along each of the directions. This is used to inflate the bounds by a fixed factor in all directions.

◆ vtkSetClampMacro() [2/2]

vtkBoundedVolumeSource::vtkSetClampMacro ( RefinementMode  ,
int  ,
USE_RESOLUTION  ,
USE_CELL_SIZE   
)

Get/Set how the output refinement is to be determined.

◆ vtkSetMacro()

vtkBoundedVolumeSource::vtkSetMacro ( CellSize  ,
double   
)

Specify the cell-size of the output image. Used only when RefinementMode is set to USE_CELL_SIZE.

◆ vtkSetVector3Macro() [1/3]

vtkBoundedVolumeSource::vtkSetVector3Macro ( Origin  ,
double   
)

Get/Set the origin or translation for the unit volume.

◆ vtkSetVector3Macro() [2/3]

vtkBoundedVolumeSource::vtkSetVector3Macro ( Resolution  ,
int   
)

Get/Set the output image resolution. Used only when RefinementMode is set to USE_RESOLUTION.

◆ vtkSetVector3Macro() [3/3]

vtkBoundedVolumeSource::vtkSetVector3Macro ( Scale  ,
double   
)

Get/Set the scale factor for a unit volume. Note that scaling is applied before the translation.

◆ vtkTypeMacro()

vtkBoundedVolumeSource::vtkTypeMacro ( vtkBoundedVolumeSource  ,
vtkImageAlgorithm   
)

Member Data Documentation

◆ CellSize

double vtkBoundedVolumeSource::CellSize
protected

◆ Origin

double vtkBoundedVolumeSource::Origin[3]
protected

◆ Padding

double vtkBoundedVolumeSource::Padding
protected

◆ RefinementMode

int vtkBoundedVolumeSource::RefinementMode
protected

◆ Resolution

int vtkBoundedVolumeSource::Resolution[3]
protected

◆ Scale

double vtkBoundedVolumeSource::Scale[3]
protected

The documentation for this class was generated from the following files: