|
virtual int | IsA (const char *type) |
|
vtkSmartVolumeMapper * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
void | SetRequestedRenderMode (int mode) |
|
void | SetRequestedRenderModeToDefault () |
|
void | SetRequestedRenderModeToGPU () |
|
void | SetRequestedRenderModeToTexture () |
|
void | SetRequestedRenderModeToRayCastAndTexture () |
|
void | SetRequestedRenderModeToRayCast () |
|
int | GetLastUsedRenderMode () |
|
void | Render (vtkRenderer *, vtkVolume *) |
|
virtual int | IsA (const char *type) |
|
vtkSmartVolumeMapper * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
void | SetRequestedRenderMode (int mode) |
|
void | SetRequestedRenderModeToDefault () |
|
void | SetRequestedRenderModeToRayCast () |
|
void | SetRequestedRenderModeToGPU () |
|
int | GetLastUsedRenderMode () |
|
void | Render (vtkRenderer *, vtkVolume *) |
|
|
virtual void | SetFinalColorWindow (float) |
|
|
virtual float | GetFinalColorWindow () |
|
|
virtual void | SetFinalColorLevel (float) |
|
|
virtual float | GetFinalColorLevel () |
|
|
virtual int | GetRequestedRenderMode () |
|
|
virtual void | SetInteractiveUpdateRate (double) |
|
|
virtual double | GetInteractiveUpdateRate () |
|
|
virtual void | SetMaxMemoryInBytes (vtkIdType) |
|
virtual vtkIdType | GetMaxMemoryInBytes () |
|
|
virtual void | SetMaxMemoryFraction (float) |
|
virtual float | GetMaxMemoryFraction () |
|
|
virtual void | SetInterpolationMode (int) |
|
virtual int | GetInterpolationMode () |
|
void | SetInterpolationModeToNearestNeighbor () |
|
void | SetInterpolationModeToLinear () |
|
void | SetInterpolationModeToCubic () |
|
|
void | CreateCanonicalView (vtkRenderer *ren, vtkVolume *volume, vtkVolume *volume2, vtkImageData *image, int blend_mode, double viewDirection[3], double viewUp[3]) |
|
|
void | ReleaseGraphicsResources (vtkWindow *) |
|
|
virtual void | SetFinalColorWindow (float) |
|
|
virtual float | GetFinalColorWindow () |
|
|
virtual void | SetFinalColorLevel (float) |
|
|
virtual float | GetFinalColorLevel () |
|
|
virtual int | GetRequestedRenderMode () |
|
|
virtual void | SetMaxMemoryInBytes (vtkIdType) |
|
virtual vtkIdType | GetMaxMemoryInBytes () |
|
|
virtual void | SetMaxMemoryFraction (float) |
|
virtual float | GetMaxMemoryFraction () |
|
|
virtual void | SetInterpolationMode (int) |
|
virtual int | GetInterpolationMode () |
|
void | SetInterpolationModeToNearestNeighbor () |
|
void | SetInterpolationModeToLinear () |
|
void | SetInterpolationModeToCubic () |
|
|
void | CreateCanonicalView (vtkRenderer *ren, vtkVolume *volume, vtkVolume *volume2, vtkImageData *image, int blend_mode, double viewDirection[3], double viewUp[3]) |
|
|
virtual void | SetInteractiveUpdateRate (double) |
|
|
virtual double | GetInteractiveUpdateRate () |
|
|
virtual void | SetInteractiveAdjustSampleDistances (int) |
|
virtual int | GetInteractiveAdjustSampleDistances () |
|
virtual void | InteractiveAdjustSampleDistancesOn () |
|
virtual void | InteractiveAdjustSampleDistancesOff () |
|
|
virtual void | SetAutoAdjustSampleDistances (int) |
|
virtual int | GetAutoAdjustSampleDistances () |
|
virtual void | AutoAdjustSampleDistancesOn () |
|
virtual void | AutoAdjustSampleDistancesOff () |
|
|
virtual void | SetSampleDistance (float) |
|
virtual float | GetSampleDistance () |
|
|
void | ReleaseGraphicsResources (vtkWindow *) |
|
vtkVolumeMapper * | NewInstance () const |
|
virtual void | SetInputData (vtkImageData *) |
|
virtual void | SetInputData (vtkDataSet *) |
|
vtkImageData * | GetInput () |
|
virtual void | SetBlendMode (int) |
|
void | SetBlendModeToComposite () |
|
void | SetBlendModeToMaximumIntensity () |
|
void | SetBlendModeToMinimumIntensity () |
|
void | SetBlendModeToAdditive () |
|
virtual int | GetBlendMode () |
|
virtual void | SetCropping (int) |
|
virtual int | GetCropping () |
|
virtual void | CroppingOn () |
|
virtual void | CroppingOff () |
|
virtual void | SetCroppingRegionPlanes (double, double, double, double, double, double) |
|
virtual void | SetCroppingRegionPlanes (double[6]) |
|
virtual double * | GetCroppingRegionPlanes () |
|
virtual void | GetCroppingRegionPlanes (double data[6]) |
|
virtual double * | GetVoxelCroppingRegionPlanes () |
|
virtual void | GetVoxelCroppingRegionPlanes (double data[6]) |
|
virtual void | SetCroppingRegionFlags (int) |
|
virtual int | GetCroppingRegionFlags () |
|
void | SetCroppingRegionFlagsToSubVolume () |
|
void | SetCroppingRegionFlagsToFence () |
|
void | SetCroppingRegionFlagsToInvertedFence () |
|
void | SetCroppingRegionFlagsToCross () |
|
void | SetCroppingRegionFlagsToInvertedCross () |
|
vtkAbstractVolumeMapper * | NewInstance () const |
|
const char * | GetScalarModeAsString () |
|
vtkDataSet * | GetDataSetInput () |
|
vtkDataObject * | GetDataObjectInput () |
|
virtual double * | GetBounds () |
|
virtual void | GetBounds (double bounds[6]) |
|
virtual void | SetScalarMode (int) |
|
virtual int | GetScalarMode () |
|
void | SetScalarModeToDefault () |
|
void | SetScalarModeToUsePointData () |
|
void | SetScalarModeToUseCellData () |
|
void | SetScalarModeToUsePointFieldData () |
|
void | SetScalarModeToUseCellFieldData () |
|
virtual void | SelectScalarArray (int arrayNum) |
|
virtual void | SelectScalarArray (const char *arrayName) |
|
virtual char * | GetArrayName () |
|
virtual int | GetArrayId () |
|
virtual int | GetArrayAccessMode () |
|
virtual float | GetGradientMagnitudeScale () |
|
virtual float | GetGradientMagnitudeBias () |
|
virtual float | GetGradientMagnitudeScale (int) |
|
virtual float | GetGradientMagnitudeBias (int) |
|
vtkAbstractMapper3D * | NewInstance () const |
|
double | GetLength () |
|
int | GetNumberOfClippingPlanes () |
|
double * | GetCenter () |
|
void | GetCenter (double center[3]) |
|
virtual int | IsARayCastMapper () |
|
virtual int | IsARenderIntoImageMapper () |
|
void | GetClippingPlaneInDataCoords (vtkMatrix4x4 *propMatrix, int i, double planeEquation[4]) |
|
vtkAbstractMapper * | NewInstance () const |
|
virtual unsigned long | GetMTime () |
|
void | SetClippingPlanes (vtkPlanes *planes) |
|
void | ShallowCopy (vtkAbstractMapper *m) |
|
virtual double | GetTimeToDraw () |
|
void | AddClippingPlane (vtkPlane *plane) |
|
void | RemoveClippingPlane (vtkPlane *plane) |
|
void | RemoveAllClippingPlanes () |
|
virtual void | SetClippingPlanes (vtkPlaneCollection *) |
|
virtual vtkPlaneCollection * | GetClippingPlanes () |
|
vtkAlgorithm * | NewInstance () const |
|
int | HasExecutive () |
|
vtkExecutive * | GetExecutive () |
|
virtual void | SetExecutive (vtkExecutive *executive) |
|
virtual int | ModifyRequest (vtkInformation *request, int when) |
|
vtkInformation * | GetInputPortInformation (int port) |
|
vtkInformation * | GetOutputPortInformation (int port) |
|
int | GetNumberOfInputPorts () |
|
int | GetNumberOfOutputPorts () |
|
void | UpdateProgress (double amount) |
|
vtkInformation * | GetInputArrayInformation (int idx) |
|
void | RemoveAllInputs () |
|
vtkDataObject * | GetOutputDataObject (int port) |
|
virtual void | RemoveInputConnection (int port, vtkAlgorithmOutput *input) |
|
virtual void | RemoveInputConnection (int port, int idx) |
|
virtual void | RemoveAllInputConnections (int port) |
|
int | GetNumberOfInputConnections (int port) |
|
int | GetTotalNumberOfInputConnections () |
|
vtkAlgorithmOutput * | GetInputConnection (int port, int index) |
|
vtkAlgorithm * | GetInputAlgorithm (int port, int index, int &algPort) |
|
vtkAlgorithm * | GetInputAlgorithm (int port, int index) |
|
vtkExecutive * | GetInputExecutive (int port, int index) |
|
vtkInformation * | GetInputInformation (int port, int index) |
|
vtkInformation * | GetOutputInformation (int port) |
|
virtual void | UpdateInformation () |
|
virtual void | UpdateDataObject () |
|
virtual void | PropagateUpdateExtent () |
|
virtual void | UpdateWholeExtent () |
|
void | ConvertTotalInputToPortConnection (int ind, int &port, int &conn) |
|
int | SetUpdateExtentToWholeExtent (int port) |
|
int | SetUpdateExtentToWholeExtent () |
|
void | SetUpdateExtent (int port, int extent[6]) |
|
virtual int | ProcessRequest (vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo) |
|
int | ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo) |
|
virtual int | ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime) |
|
virtual vtkInformation * | GetInformation () |
|
virtual void | SetInformation (vtkInformation *) |
|
virtual void | Register (vtkObjectBase *o) |
|
virtual void | UnRegister (vtkObjectBase *o) |
|
virtual void | SetAbortExecute (int) |
|
virtual int | GetAbortExecute () |
|
virtual void | AbortExecuteOn () |
|
virtual void | AbortExecuteOff () |
|
virtual void | SetProgress (double) |
|
virtual double | GetProgress () |
|
void | SetProgressText (const char *ptext) |
|
virtual char * | GetProgressText () |
|
virtual unsigned long | GetErrorCode () |
|
virtual void | SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name) |
|
virtual void | SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType) |
|
virtual void | SetInputArrayToProcess (int idx, vtkInformation *info) |
|
virtual void | SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName) |
|
vtkDataObject * | GetInputDataObject (int port, int connection) |
|
virtual void | SetInputConnection (int port, vtkAlgorithmOutput *input) |
|
virtual void | SetInputConnection (vtkAlgorithmOutput *input) |
|
virtual void | AddInputConnection (int port, vtkAlgorithmOutput *input) |
|
virtual void | AddInputConnection (vtkAlgorithmOutput *input) |
|
virtual void | SetInputDataObject (int port, vtkDataObject *data) |
|
virtual void | SetInputDataObject (vtkDataObject *data) |
|
virtual void | AddInputDataObject (int port, vtkDataObject *data) |
|
virtual void | AddInputDataObject (vtkDataObject *data) |
|
vtkAlgorithmOutput * | GetOutputPort (int index) |
|
vtkAlgorithmOutput * | GetOutputPort () |
|
vtkAlgorithm * | GetInputAlgorithm () |
|
vtkExecutive * | GetInputExecutive () |
|
vtkInformation * | GetInputInformation () |
|
virtual void | Update (int port) |
|
virtual void | Update () |
|
virtual void | SetReleaseDataFlag (int) |
|
virtual int | GetReleaseDataFlag () |
|
void | ReleaseDataFlagOn () |
|
void | ReleaseDataFlagOff () |
|
int | UpdateExtentIsEmpty (vtkInformation *pinfo, vtkDataObject *output) |
|
int | UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType) |
|
void | SetUpdateExtent (int port, int piece, int numPieces, int ghostLevel) |
|
void | SetUpdateExtent (int piece, int numPieces, int ghostLevel) |
|
void | SetUpdateExtent (int extent[6]) |
|
int * | GetUpdateExtent () |
|
int * | GetUpdateExtent (int port) |
|
void | GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1) |
|
void | GetUpdateExtent (int port, int &x0, int &x1, int &y0, int &y1, int &z0, int &z1) |
|
void | GetUpdateExtent (int extent[6]) |
|
void | GetUpdateExtent (int port, int extent[6]) |
|
int | GetUpdatePiece () |
|
int | GetUpdatePiece (int port) |
|
int | GetUpdateNumberOfPieces () |
|
int | GetUpdateNumberOfPieces (int port) |
|
int | GetUpdateGhostLevel () |
|
int | GetUpdateGhostLevel (int port) |
|
void | SetProgressObserver (vtkProgressObserver *) |
|
virtual vtkProgressObserver * | GetProgressObserver () |
|
vtkObject * | NewInstance () const |
|
virtual void | DebugOn () |
|
virtual void | DebugOff () |
|
bool | GetDebug () |
|
void | SetDebug (bool debugFlag) |
|
virtual void | Modified () |
|
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
|
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
|
vtkCommand * | GetCommand (unsigned long tag) |
|
void | RemoveObserver (vtkCommand *) |
|
void | RemoveObservers (unsigned long event, vtkCommand *) |
|
void | RemoveObservers (const char *event, vtkCommand *) |
|
int | HasObserver (unsigned long event, vtkCommand *) |
|
int | HasObserver (const char *event, vtkCommand *) |
|
void | RemoveObserver (unsigned long tag) |
|
void | RemoveObservers (unsigned long event) |
|
void | RemoveObservers (const char *event) |
|
void | RemoveAllObservers () |
|
int | HasObserver (unsigned long event) |
|
int | HasObserver (const char *event) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
int | InvokeEvent (unsigned long event, void *callData) |
|
int | InvokeEvent (const char *event, void *callData) |
|
int | InvokeEvent (unsigned long event) |
|
int | InvokeEvent (const char *event) |
|
const char * | GetClassName () const |
|
virtual void | Delete () |
|
virtual void | FastDelete () |
|
void | Print (ostream &os) |
|
void | SetReferenceCount (int) |
|
void | PrintRevisions (ostream &) |
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
|
int | GetReferenceCount () |
|
|
static vtkSmartVolumeMapper * | New () |
|
static int | IsTypeOf (const char *type) |
|
static vtkSmartVolumeMapper * | SafeDownCast (vtkObjectBase *o) |
|
static vtkSmartVolumeMapper * | New () |
|
static int | IsTypeOf (const char *type) |
|
static vtkSmartVolumeMapper * | SafeDownCast (vtkObjectBase *o) |
|
static int | IsTypeOf (const char *type) |
|
static vtkVolumeMapper * | SafeDownCast (vtkObjectBase *o) |
|
static int | IsTypeOf (const char *type) |
|
static vtkAbstractVolumeMapper * | SafeDownCast (vtkObjectBase *o) |
|
static int | IsTypeOf (const char *type) |
|
static vtkAbstractMapper3D * | SafeDownCast (vtkObjectBase *o) |
|
static int | IsTypeOf (const char *type) |
|
static vtkAbstractMapper * | SafeDownCast (vtkObjectBase *o) |
|
static vtkDataArray * | GetScalars (vtkDataSet *input, int scalarMode, int arrayAccessMode, int arrayId, const char *arrayName, int &cellFlag) |
|
static vtkAbstractArray * | GetAbstractScalars (vtkDataSet *input, int scalarMode, int arrayAccessMode, int arrayId, const char *arrayName, int &cellFlag) |
|
static vtkAlgorithm * | New () |
|
static int | IsTypeOf (const char *type) |
|
static vtkAlgorithm * | SafeDownCast (vtkObjectBase *o) |
|
static vtkInformationIntegerKey * | INPUT_IS_OPTIONAL () |
|
static vtkInformationIntegerKey * | INPUT_IS_REPEATABLE () |
|
static vtkInformationInformationVectorKey * | INPUT_REQUIRED_FIELDS () |
|
static vtkInformationStringVectorKey * | INPUT_REQUIRED_DATA_TYPE () |
|
static vtkInformationInformationVectorKey * | INPUT_ARRAYS_TO_PROCESS () |
|
static vtkInformationIntegerKey * | INPUT_PORT () |
|
static vtkInformationIntegerKey * | INPUT_CONNECTION () |
|
static vtkInformationIntegerKey * | CAN_PRODUCE_SUB_EXTENT () |
|
static vtkInformationIntegerKey * | CAN_HANDLE_PIECE_REQUEST () |
|
static void | SetDefaultExecutivePrototype (vtkExecutive *proto) |
|
static int | IsTypeOf (const char *type) |
|
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
|
static vtkObject * | New () |
|
static void | BreakOnError () |
|
static void | SetGlobalWarningDisplay (int val) |
|
static void | GlobalWarningDisplayOn () |
|
static void | GlobalWarningDisplayOff () |
|
static int | GetGlobalWarningDisplay () |
|
static int | IsTypeOf (const char *name) |
|
static vtkObjectBase * | New () |
|
|
virtual vtkObjectBase * | NewInstanceInternal () const |
|
| vtkSmartVolumeMapper () |
|
| ~vtkSmartVolumeMapper () |
|
void | ConnectMapperInput (vtkVolumeMapper *m) |
|
void | ConnectFilterInput (vtkImageResample *f) |
|
void | Initialize (vtkRenderer *ren, vtkVolume *vol) |
|
void | ComputeRenderMode (vtkRenderer *ren, vtkVolume *vol) |
|
virtual vtkObjectBase * | NewInstanceInternal () const |
|
| vtkSmartVolumeMapper () |
|
| ~vtkSmartVolumeMapper () |
|
void | ConnectMapperInput (vtkVolumeMapper *m) |
|
void | ConnectFilterInput (vtkImageResample *f) |
|
void | Initialize (vtkRenderer *ren, vtkVolume *vol) |
|
void | ComputeRenderMode (vtkRenderer *ren, vtkVolume *vol) |
|
| vtkVolumeMapper () |
|
| ~vtkVolumeMapper () |
|
void | ConvertCroppingRegionPlanesToVoxels () |
|
virtual int | FillInputPortInformation (int, vtkInformation *) |
|
| vtkAbstractVolumeMapper () |
|
| ~vtkAbstractVolumeMapper () |
|
| vtkAbstractMapper3D () |
|
| ~vtkAbstractMapper3D () |
|
| vtkAbstractMapper () |
|
| ~vtkAbstractMapper () |
|
| vtkAlgorithm () |
|
| ~vtkAlgorithm () |
|
virtual int | FillOutputPortInformation (int port, vtkInformation *info) |
|
virtual void | SetNumberOfInputPorts (int n) |
|
virtual void | SetNumberOfOutputPorts (int n) |
|
int | InputPortIndexInRange (int index, const char *action) |
|
int | OutputPortIndexInRange (int index, const char *action) |
|
int | GetInputArrayAssociation (int idx, vtkInformationVector **inputVector) |
|
virtual vtkExecutive * | CreateDefaultExecutive () |
|
virtual void | ReportReferences (vtkGarbageCollector *) |
|
virtual void | SetNumberOfInputConnections (int port, int n) |
|
int | GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector) |
|
int | GetInputArrayAssociation (int idx, vtkDataObject *input) |
|
vtkDataArray * | GetInputArrayToProcess (int idx, vtkInformationVector **inputVector) |
|
vtkDataArray * | GetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association) |
|
vtkDataArray * | GetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector) |
|
vtkDataArray * | GetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association) |
|
vtkDataArray * | GetInputArrayToProcess (int idx, vtkDataObject *input) |
|
vtkDataArray * | GetInputArrayToProcess (int idx, vtkDataObject *input, int &association) |
|
vtkAbstractArray * | GetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector) |
|
vtkAbstractArray * | GetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association) |
|
vtkAbstractArray * | GetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector) |
|
vtkAbstractArray * | GetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association) |
|
vtkAbstractArray * | GetInputAbstractArrayToProcess (int idx, vtkDataObject *input) |
|
vtkAbstractArray * | GetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association) |
|
vtkInformation * | GetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector) |
|
virtual void | SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input) |
|
void | SetInputDataInternal (int port, vtkDataObject *input) |
|
void | AddInputDataInternal (int port, vtkDataObject *input) |
|
virtual void | SetErrorCode (unsigned long) |
|
| vtkObject () |
|
virtual | ~vtkObject () |
|
virtual void | RegisterInternal (vtkObjectBase *, int check) |
|
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
|
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
|
void | InternalReleaseFocus () |
|
| vtkObjectBase () |
|
virtual | ~vtkObjectBase () |
|
virtual void | CollectRevisions (ostream &) |
|
| vtkObjectBase (const vtkObjectBase &) |
|
void | operator= (const vtkObjectBase &) |
|
Adaptive volume mapper.
vtkSmartVolumeMapper is a volume mapper that will delegate to a specific volume mapper based on rendering parameters and available hardware. Use the SetRequestedRenderMode() method to control the behavior of the selection. The following options are available:
- vtkSmartVolumeMapper::DefaultRenderMode:
- Allow the vtkSmartVolumeMapper to select the best mapper based on rendering parameters and hardware support. If GPU ray casting is supported, this mapper will be used for all rendering. If not, then if 3D texture mapping is supported, it will be used for interactive rendering and the vtkFixedPointRayCastMapper will be used for still rendering. If 3D texture mapping is not supported, then the vtkFixedPointRayCastMapper will be used exclusively. This is the default requested render mode, and is generally the best option. When you use this option, your volume will always be rendered, but the method used to render it may vary based on parameters and platform.
- vtkSmartVolumeMapper::RayCastAndTextureRenderMode:
- Use the vtkVolumeTextureMapper3D for interactive rendering, and the vtkFixedPointVolumeRayCastMapper for still renders. If 3D texture mapping is not supported, then the ray caster will be used exclusively. When you use this option your volume will always be rendered, but the method used for interactive rendering will vary based on parameters and platform. The decision on whether a particular render is interactive or still is based on the adjustable parameter InteractiveUpdateRate. If the DesiredUpdateRate found in the vtkRenderWindow that initiated the Render is at or above the InteractiveUpdateRate value, then the render is considered interactive, otherwise it is considered a still render.
- vtkSmartVolumeMapper::RayCastRenderMode:
- Use the vtkFixedPointVolumeRayCastMapper for both interactive and still rendering. When you use this option your volume will always be rendered with the vtkFixedPointVolumeRayCastMapper.
- vtkSmartVolumeMapper::TextureRenderMode:
- Use the vtkVolumeTextureMapper3D, if supported, for both interactive and still rendering. If 3D texture mapping is not supported (either by the hardware, or due to the rendering parameters) then no image will be rendered. Use this option only if you have already checked for support based on the current hardware, number of scalar components, and rendering parameters in the vtkVolumeProperty. Also note that the vtkVolumeTextureMapper3D does not support window / level operations on the final image, so FinalColorWindow must be at the default value of 1.0 and FinalColorLevel must be at the default value of 0.5.
- vtkSmartVolumeMapper::GPURenderMode:
- Use the vtkGPUVolumeRayCastMapper, if supported, for both interactive and still rendering. If the GPU ray caster is not supported (due to hardware limitations or rendering parameters) then no image will be rendered. Use this option only if you have already checked for supported based on the current hardware, number of scalar components, and rendering parameters in the vtkVolumeProperty.
- vtkSmartVolumeMapper::GPURenderMode:
- You can adjust the contrast and brightness in the rendered image using the FinalColorWindow and FinalColorLevel ivars. By default the FinalColorWindow is set to 1.0, and the FinalColorLevel is set to 0.5, which applies no correction to the computed image. To apply the window / level operation to the computer image color, first a Scale and Bias value are computed:
scale = 1.0 / this->FinalColorWindow
bias = 0.5 - this->FinalColorLevel / this->FinalColorWindow
To compute a new color (R', G', B', A') from an existing color (R,G,B,A) for a pixel, the following equation is used:
R' = R*scale + bias*A
G' = G*scale + bias*A
B' = B*scale + bias*A
A' = A
Note that bias is multiplied by the alpha component before adding because the red, green, and blue component of the color are already pre-multiplied by alpha. Also note that the window / level operation leaves the alpha component unchanged - it only adjusts the RGB values.
vtkSmartVolumeMapper is a volume mapper that will delegate to a specific volume mapper based on rendering parameters and available hardware. Use the SetRequestedRenderMode() method to control the behavior of the selection. The following options are available:
- vtkSmartVolumeMapper::DefaultRenderMode:
- Allow the vtkSmartVolumeMapper to select the best mapper based on rendering parameters and hardware support. If GPU ray casting is supported, this mapper will be used for all rendering. If not, then the vtkFixedPointRayCastMapper will be used exclusively. This is the default requested render mode, and is generally the best option. When you use this option, your volume will always be rendered, but the method used to render it may vary based on parameters and platform.
- vtkSmartVolumeMapper::RayCastRenderMode:
- Use the vtkFixedPointVolumeRayCastMapper for both interactive and still rendering. When you use this option your volume will always be rendered with the vtkFixedPointVolumeRayCastMapper.
- vtkSmartVolumeMapper::GPURenderMode:
- Use the vtkGPUVolumeRayCastMapper, if supported, for both interactive and still rendering. If the GPU ray caster is not supported (due to hardware limitations or rendering parameters) then no image will be rendered. Use this option only if you have already checked for supported based on the current hardware, number of scalar components, and rendering parameters in the vtkVolumeProperty.
- vtkSmartVolumeMapper::GPURenderMode:
- You can adjust the contrast and brightness in the rendered image using the FinalColorWindow and FinalColorLevel ivars. By default the FinalColorWindow is set to 1.0, and the FinalColorLevel is set to 0.5, which applies no correction to the computed image. To apply the window / level operation to the computer image color, first a Scale and Bias value are computed:
scale = 1.0 / this->FinalColorWindow
bias = 0.5 - this->FinalColorLevel / this->FinalColorWindow
To compute a new color (R', G', B', A') from an existing color (R,G,B,A) for a pixel, the following equation is used:
R' = R*scale + bias*A
G' = G*scale + bias*A
B' = B*scale + bias*A
A' = A
Note that bias is multiplied by the alpha component before adding because the red, green, and blue component of the color are already pre-multiplied by alpha. Also note that the window / level operation leaves the alpha component unchanged - it only adjusts the RGB values.
- Examples:
- vtkSmartVolumeMapper (Examples)
- Tests:
- vtkSmartVolumeMapper (Tests)
Definition at line 117 of file vtkSmartVolumeMapper.h.