VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkOpenGLGPUVolumeRayCastMapper Class Reference

OpenGL subclass that draws the image to the screen. More...

#include <vtkOpenGLGPUVolumeRayCastMapper.h>

Inheritance diagram for vtkOpenGLGPUVolumeRayCastMapper:
[legend]
Collaboration diagram for vtkOpenGLGPUVolumeRayCastMapper:
[legend]

Public Types

typedef vtkGPUVolumeRayCastMapper Superclass
 
typedef vtkGPUVolumeRayCastMapper Superclass
 
- Public Types inherited from vtkGPUVolumeRayCastMapper
enum  { BinaryMaskType = 0, LabelMapMaskType }
 
typedef vtkVolumeMapper Superclass
 
- Public Types inherited from vtkVolumeMapper
enum  { COMPOSITE_BLEND, MAXIMUM_INTENSITY_BLEND, MINIMUM_INTENSITY_BLEND, ADDITIVE_BLEND }
 
typedef vtkAbstractVolumeMapper Superclass
 
- Public Types inherited from vtkAbstractVolumeMapper
typedef vtkAbstractMapper3D Superclass
 
- Public Types inherited from vtkAbstractMapper3D
typedef vtkAbstractMapper Superclass
 
- Public Types inherited from vtkAbstractMapper
typedef vtkAlgorithm Superclass
 
- Public Types inherited from vtkAlgorithm
typedef vtkObject Superclass
 
enum  DesiredOutputPrecision { SINGLE_PRECISION, DOUBLE_PRECISION, DEFAULT_PRECISION }
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkOpenGLGPUVolumeRayCastMapperNewInstance () const
 
virtual void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void ReleaseGraphicsResources (vtkWindow *window)
 
virtual int IsA (const char *type)
 
vtkOpenGLGPUVolumeRayCastMapperNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual int IsRenderSupported (vtkRenderWindow *window, vtkVolumeProperty *property)
 
- Public Member Functions inherited from vtkGPUVolumeRayCastMapper
vtkGPUVolumeRayCastMapperNewInstance () const
 
void CreateCanonicalView (vtkRenderer *ren, vtkVolume *volume, vtkImageData *image, int blend_mode, double viewDirection[3], double viewUp[3])
 
void Render (vtkRenderer *, vtkVolume *)
 
virtual void SetAutoAdjustSampleDistances (int)
 
virtual int GetAutoAdjustSampleDistances ()
 
virtual void AutoAdjustSampleDistancesOn ()
 
virtual void AutoAdjustSampleDistancesOff ()
 
virtual void SetSampleDistance (float)
 
virtual float GetSampleDistance ()
 
virtual void SetImageSampleDistance (float)
 
virtual float GetImageSampleDistance ()
 
virtual void SetMinimumImageSampleDistance (float)
 
virtual float GetMinimumImageSampleDistance ()
 
virtual void SetMaximumImageSampleDistance (float)
 
virtual float GetMaximumImageSampleDistance ()
 
virtual void SetFinalColorWindow (float)
 
virtual float GetFinalColorWindow ()
 
virtual void SetFinalColorLevel (float)
 
virtual float GetFinalColorLevel ()
 
virtual void SetMaxMemoryInBytes (vtkIdType)
 
virtual vtkIdType GetMaxMemoryInBytes ()
 
virtual void SetMaxMemoryFraction (float)
 
virtual float GetMaxMemoryFraction ()
 
virtual void SetReportProgress (bool)
 
virtual bool GetReportProgress ()
 
void SetMaskInput (vtkImageData *mask)
 
virtual vtkImageDataGetMaskInput ()
 
virtual void SetMaskType (int)
 
virtual int GetMaskType ()
 
void SetMaskTypeToBinary ()
 
void SetMaskTypeToLabelMap ()
 
virtual void SetMaskBlendFactor (float)
 
virtual float GetMaskBlendFactor ()
 
- Public Member Functions inherited from vtkVolumeMapper
vtkVolumeMapperNewInstance () const
 
virtual void SetInputData (vtkImageData *)
 
virtual void SetInputData (vtkDataSet *)
 
vtkImageDataGetInput ()
 
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 doubleGetCroppingRegionPlanes ()
 
virtual void GetCroppingRegionPlanes (double data[6])
 
virtual doubleGetVoxelCroppingRegionPlanes ()
 
virtual void GetVoxelCroppingRegionPlanes (double data[6])
 
virtual void SetCroppingRegionFlags (int)
 
virtual int GetCroppingRegionFlags ()
 
void SetCroppingRegionFlagsToSubVolume ()
 
void SetCroppingRegionFlagsToFence ()
 
void SetCroppingRegionFlagsToInvertedFence ()
 
void SetCroppingRegionFlagsToCross ()
 
void SetCroppingRegionFlagsToInvertedCross ()
 
- Public Member Functions inherited from vtkAbstractVolumeMapper
vtkAbstractVolumeMapperNewInstance () const
 
const char * GetScalarModeAsString ()
 
vtkDataSetGetDataSetInput ()
 
vtkDataObjectGetDataObjectInput ()
 
virtual doubleGetBounds ()
 
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)
 
- Public Member Functions inherited from vtkAbstractMapper3D
vtkAbstractMapper3DNewInstance () const
 
double GetLength ()
 
int GetNumberOfClippingPlanes ()
 
doubleGetCenter ()
 
void GetCenter (double center[3])
 
virtual int IsARayCastMapper ()
 
virtual int IsARenderIntoImageMapper ()
 
void GetClippingPlaneInDataCoords (vtkMatrix4x4 *propMatrix, int i, double planeEquation[4])
 
- Public Member Functions inherited from vtkAbstractMapper
vtkAbstractMapperNewInstance () 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 vtkPlaneCollectionGetClippingPlanes ()
 
- Public Member Functions inherited from vtkAlgorithm
vtkAlgorithmNewInstance () const
 
int HasExecutive ()
 
vtkExecutiveGetExecutive ()
 
virtual void SetExecutive (vtkExecutive *executive)
 
virtual int ModifyRequest (vtkInformation *request, int when)
 
vtkInformationGetInputPortInformation (int port)
 
vtkInformationGetOutputPortInformation (int port)
 
int GetNumberOfInputPorts ()
 
int GetNumberOfOutputPorts ()
 
void UpdateProgress (double amount)
 
vtkInformationGetInputArrayInformation (int idx)
 
void RemoveAllInputs ()
 
vtkDataObjectGetOutputDataObject (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 ()
 
vtkAlgorithmOutputGetInputConnection (int port, int index)
 
vtkAlgorithmGetInputAlgorithm (int port, int index, int &algPort)
 
vtkAlgorithmGetInputAlgorithm (int port, int index)
 
vtkExecutiveGetInputExecutive (int port, int index)
 
vtkInformationGetInputInformation (int port, int index)
 
vtkInformationGetOutputInformation (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 vtkInformationGetInformation ()
 
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)
 
vtkDataObjectGetInputDataObject (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)
 
vtkAlgorithmOutputGetOutputPort (int index)
 
vtkAlgorithmOutputGetOutputPort ()
 
vtkAlgorithmGetInputAlgorithm ()
 
vtkExecutiveGetInputExecutive ()
 
vtkInformationGetInputInformation ()
 
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])
 
intGetUpdateExtent ()
 
intGetUpdateExtent (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 vtkProgressObserverGetProgressObserver ()
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () 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)
 
vtkCommandGetCommand (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)
 
- Public Member Functions inherited from vtkObjectBase
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 Public Member Functions

static vtkOpenGLGPUVolumeRayCastMapperNew ()
 
static int IsTypeOf (const char *type)
 
static vtkOpenGLGPUVolumeRayCastMapperSafeDownCast (vtkObjectBase *o)
 
static const char * OpenGLErrorMessage (unsigned int errorCode)
 
static void PrintError (const char *headerMessage)
 
static vtkOpenGLGPUVolumeRayCastMapperNew ()
 
static int IsTypeOf (const char *type)
 
static vtkOpenGLGPUVolumeRayCastMapperSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkGPUVolumeRayCastMapper
static vtkGPUVolumeRayCastMapperNew ()
 
static int IsTypeOf (const char *type)
 
static vtkGPUVolumeRayCastMapperSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkVolumeMapper
static int IsTypeOf (const char *type)
 
static vtkVolumeMapperSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAbstractVolumeMapper
static int IsTypeOf (const char *type)
 
static vtkAbstractVolumeMapperSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAbstractMapper3D
static int IsTypeOf (const char *type)
 
static vtkAbstractMapper3DSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAbstractMapper
static int IsTypeOf (const char *type)
 
static vtkAbstractMapperSafeDownCast (vtkObjectBase *o)
 
static vtkDataArrayGetScalars (vtkDataSet *input, int scalarMode, int arrayAccessMode, int arrayId, const char *arrayName, int &cellFlag)
 
static vtkAbstractArrayGetAbstractScalars (vtkDataSet *input, int scalarMode, int arrayAccessMode, int arrayId, const char *arrayName, int &cellFlag)
 
- Static Public Member Functions inherited from vtkAlgorithm
static vtkAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkAlgorithmSafeDownCast (vtkObjectBase *o)
 
static vtkInformationIntegerKeyINPUT_IS_OPTIONAL ()
 
static vtkInformationIntegerKeyINPUT_IS_REPEATABLE ()
 
static vtkInformationInformationVectorKeyINPUT_REQUIRED_FIELDS ()
 
static vtkInformationStringVectorKeyINPUT_REQUIRED_DATA_TYPE ()
 
static vtkInformationInformationVectorKeyINPUT_ARRAYS_TO_PROCESS ()
 
static vtkInformationIntegerKeyINPUT_PORT ()
 
static vtkInformationIntegerKeyINPUT_CONNECTION ()
 
static vtkInformationIntegerKeyCAN_PRODUCE_SUB_EXTENT ()
 
static vtkInformationIntegerKeyCAN_HANDLE_PIECE_REQUEST ()
 
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkOpenGLGPUVolumeRayCastMapper ()
 
 ~vtkOpenGLGPUVolumeRayCastMapper ()
 
virtual void GPURender (vtkRenderer *ren, vtkVolume *vol)
 
virtual void PreRender (vtkRenderer *ren, vtkVolume *vol, double datasetBounds[6], double scalarRange[2], int numberOfScalarComponents, unsigned int numberOfLevels)
 
virtual void RenderBlock (vtkRenderer *ren, vtkVolume *vol, unsigned int level)
 
virtual void PostRender (vtkRenderer *ren, int numberOfScalarComponents)
 
void LoadExtensions (vtkRenderWindow *window)
 
void CreateOpenGLObjects (vtkRenderer *ren)
 
int AllocateFrameBuffers (vtkRenderer *ren)
 
void SetupRender (vtkRenderer *ren, vtkVolume *vol)
 
void CopyFBOToTexture ()
 
void CleanupRender ()
 
void RenderTextureToScreen (vtkRenderer *ren)
 
int PowerOfTwoGreaterOrEqual (int x)
 
void CheckFrameBufferStatus ()
 
vtkStdString BufferToString (int buffer)
 
void DisplayReadAndDrawBuffers ()
 
void DisplayFrameBufferAttachments ()
 
void DisplayFrameBufferAttachment (unsigned int uattachment)
 
void GetLightingStatus ()
 
void ComputeReductionFactor (double allocatedTime)
 
int RenderSubVolume (vtkRenderer *ren, double bounds[6], vtkVolume *vol)
 
void LoadProjectionParameters (vtkRenderer *ren, vtkVolume *vol)
 
void ComputeNumberOfCroppingRegions ()
 
void GetTextureFormat (vtkImageData *input, unsigned int *internalFormat, unsigned int *format, unsigned int *type, int *componentSize)
 
bool TestLoadingScalar (unsigned int internalFormat, unsigned int format, unsigned int type, int textureSize[3], int componentSize)
 
void SlabsFromDatasetToIndex (double slabsDataSet[6], double slabsPoints[6])
 
void SlabsFromIndexToDataset (double slabsPoints[6], double slabsDataSet[6])
 
const char * GetEnabledString (unsigned char value)
 
void GetOpenGLState ()
 
void DebugDisplayBox (vtkPolyData *box)
 
void UpdateNoiseTexture ()
 
virtual void GetReductionRatio (double ratio[3])
 
void BuildScaleBiasProgram (vtkRenderWindow *w)
 
virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkOpenGLGPUVolumeRayCastMapper ()
 
 ~vtkOpenGLGPUVolumeRayCastMapper ()
 
virtual void ReleaseGraphicsResources (vtkWindow *window)
 
void BuildShader (vtkRenderer *ren, vtkVolume *vol, int noOfCmponents)
 
virtual void PreRender (vtkRenderer *vtkNotUsed(ren), vtkVolume *vtkNotUsed(vol), double vtkNotUsed(datasetBounds)[6], double vtkNotUsed(scalarRange)[2], int vtkNotUsed(noOfComponents), unsigned int vtkNotUsed(numberOfLevels))
 
virtual void RenderBlock (vtkRenderer *vtkNotUsed(ren), vtkVolume *vtkNotUsed(vol), unsigned int vtkNotUsed(level))
 
virtual void PostRender (vtkRenderer *vtkNotUsed(ren), int vtkNotUsed(noOfComponents))
 
void GPURender (vtkRenderer *ren, vtkVolume *vol)
 
void ComputeReductionFactor (double allocatedTime)
 
void GetReductionRatio (double *ratio)
 
virtual int IsRenderSupported (vtkRenderWindow *vtkNotUsed(window), vtkVolumeProperty *vtkNotUsed(property))
 
int TestRequiredExtension (vtkOpenGLExtensionManager *extensions, const char *extensionName)
 
int LoadScalarField (vtkImageData *input, vtkImageData *maskInput, int textureExtent[6], vtkVolume *volume)
 
int UpdateColorTransferFunction (vtkVolume *vol, int numberOfScalarComponents)
 
int UpdateOpacityTransferFunction (vtkVolume *vol, int numberOfScalarComponents, unsigned int level)
 
void ClipBoundingBox (vtkRenderer *ren, double worldBounds[6], vtkVolume *vol)
 
int RenderClippedBoundingBox (int tcoordFlag, size_t currentBlock, size_t numberOfBlocks, vtkRenderWindow *renWin)
 
void BuildProgram (vtkRenderWindow *w, int parallelProjection, int raycastMethod, int shadeMethod, int componentMethod)
 
void RenderWholeVolume (vtkRenderer *ren, vtkVolume *vol)
 
void RenderRegions (vtkRenderer *ren, vtkVolume *vol)
 
double ComputeMinimalSampleDistancePerPixel (vtkRenderer *renderer, vtkVolume *volume)
 
- Protected Member Functions inherited from vtkGPUVolumeRayCastMapper
 vtkGPUVolumeRayCastMapper ()
 
 ~vtkGPUVolumeRayCastMapper ()
 
int ValidateRender (vtkRenderer *, vtkVolume *)
 
void CanonicalViewRender (vtkRenderer *, vtkVolume *)
 
void SetCellFlag (int cellFlag)
 
virtual void ClipCroppingRegionPlanes ()
 
virtual vtkImageDataGetTransformedInput ()
 
void SetTransformedInput (vtkImageData *)
 
virtual void SetAMRMode (int)
 
virtual int GetAMRMode ()
 
virtual void AMRModeOn ()
 
virtual void AMRModeOff ()
 
- Protected Member Functions inherited from vtkVolumeMapper
 vtkVolumeMapper ()
 
 ~vtkVolumeMapper ()
 
void ConvertCroppingRegionPlanesToVoxels ()
 
virtual int FillInputPortInformation (int, vtkInformation *)
 
- Protected Member Functions inherited from vtkAbstractVolumeMapper
 vtkAbstractVolumeMapper ()
 
 ~vtkAbstractVolumeMapper ()
 
- Protected Member Functions inherited from vtkAbstractMapper3D
 vtkAbstractMapper3D ()
 
 ~vtkAbstractMapper3D ()
 
- Protected Member Functions inherited from vtkAbstractMapper
 vtkAbstractMapper ()
 
 ~vtkAbstractMapper ()
 
- Protected Member Functions inherited from vtkAlgorithm
 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 vtkExecutiveCreateDefaultExecutive ()
 
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)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkInformationGetInputArrayFieldInformation (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)
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

int NumberOfCroppingRegions
 
double BoundingBox [8][3]
 
vtkPolyDataPolyDataBoundingBox
 
vtkPlaneCollectionPlanes
 
vtkPlaneNearPlane
 
vtkClipConvexPolyDataClip
 
vtkMatrix4x4InvVolumeMatrix
 
vtkDensifyPolyDataDensify
 
int OpenGLObjectsCreated
 
int NumberOfFrameBuffers
 
unsigned int FrameBufferObject
 
unsigned int DepthRenderBufferObject
 
unsigned int TextureObjects [5]
 
unsigned int MaxValueFrameBuffer
 
unsigned int MaxValueFrameBuffer2
 
int ReducedSize [2]
 
vtkPolyDataClippedBoundingBox
 
int LastSize [2]
 
double ReductionFactor
 
vtkUnsupportedRequiredExtensionsStringStream * UnsupportedRequiredExtensions
 
int LoadExtensionsSucceeded
 
int Supports_GL_ARB_texture_float
 
int SupportsPixelBufferObjects
 
vtkTimeStamp DataBufferTime
 
vtkMatrix4x4TempMatrix [3]
 
double TableRange [2]
 
int ErrorLine
 
int ErrorColumn
 
char * ErrorString
 
int LastParallelProjection
 
int LastRayCastMethod
 
int LastCroppingMode
 
int LastComponent
 
int LastShade
 
vtkImageDataSmallInput
 
vtkTimeStamp SmallInputBuildTime
 
unsigned int SavedFrameBuffer
 
vtkTessellatedBoxSourceBoxSource
 
floatNoiseTexture
 
int NoiseTextureSize
 
unsigned int NoiseTextureId
 
bool IgnoreSampleDistancePerPixel
 
vtkMapDataArrayTextureId * ScalarsTextures
 
vtkMapMaskTextureIdMaskTextures
 
vtkRGBTable * RGBTable
 
vtkRGBTable * Mask1RGBTable
 
vtkRGBTable * Mask2RGBTable
 
vtkOpacityTables * OpacityTables
 
vtkKWScalarField * CurrentScalar
 
vtkKWMask * CurrentMask
 
float ActualSampleDistance
 
double LastProgressEventTime
 
bool PreserveOrientation
 
vtkShaderProgram2Program
 
vtkShader2Main
 
vtkShader2Projection
 
vtkShader2Trace
 
vtkShader2CroppingShader
 
vtkShader2Component
 
vtkShader2Shade
 
bool SizeChanged
 
vtkShaderProgram2ScaleBiasProgram
 
- Protected Attributes inherited from vtkGPUVolumeRayCastMapper
float SampleDistance
 
float ImageSampleDistance
 
float MinimumImageSampleDistance
 
float MaximumImageSampleDistance
 
int AutoAdjustSampleDistances
 
int SmallVolumeRender
 
double BigTimeToDraw
 
double SmallTimeToDraw
 
float FinalColorWindow
 
float FinalColorLevel
 
vtkIdType MaxMemoryInBytes
 
float MaxMemoryFraction
 
int GeneratingCanonicalView
 
vtkImageDataCanonicalViewImageData
 
int AMRMode
 
int CellFlag
 
double ClippedCroppingRegionPlanes [6]
 
bool ReportProgress
 
vtkImageDataMaskInput
 
float MaskBlendFactor
 
int MaskType
 
vtkImageDataTransformedInput
 
vtkImageDataLastInput
 
- Protected Attributes inherited from vtkVolumeMapper
int BlendMode
 
int Cropping
 
double CroppingRegionPlanes [6]
 
double VoxelCroppingRegionPlanes [6]
 
int CroppingRegionFlags
 
- Protected Attributes inherited from vtkAbstractVolumeMapper
int ScalarMode
 
char * ArrayName
 
int ArrayId
 
int ArrayAccessMode
 
- Protected Attributes inherited from vtkAbstractMapper3D
double Bounds [6]
 
double Center [3]
 
- Protected Attributes inherited from vtkAbstractMapper
vtkTimerLogTimer
 
double TimeToDraw
 
vtkWindowLastWindow
 
vtkPlaneCollectionClippingPlanes
 
- Protected Attributes inherited from vtkAlgorithm
vtkInformationInformation
 
double Progress
 
char * ProgressText
 
vtkProgressObserverProgressObserver
 
unsigned long ErrorCode
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Additional Inherited Members

- Public Attributes inherited from vtkAlgorithm
int AbortExecute
 
- Static Protected Member Functions inherited from vtkAlgorithm
static vtkInformationIntegerKeyPORT_REQUIREMENTS_FILLED ()
 
- Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutiveDefaultExecutivePrototype
 

Detailed Description

OpenGL subclass that draws the image to the screen.

This is the concrete implementation of a ray cast image display helper - a helper class responsible for drawing the image to the screen.

See also
vtkGPUVolumeRayCastMapper
Thanks:
Thanks to Michael Granseier for helping to debug this class with respect to maximum memory issues (which must be specified as vtkIdType and not int).
Events:
vtkCommand::VolumeMapperRenderProgressEvent

Definition at line 63 of file vtkOpenGLGPUVolumeRayCastMapper.h.

Member Typedef Documentation

Definition at line 68 of file vtkOpenGLGPUVolumeRayCastMapper.h.

Definition at line 30 of file vtkOpenGLGPUVolumeRayCastMapper.h.

Constructor & Destructor Documentation

vtkOpenGLGPUVolumeRayCastMapper::vtkOpenGLGPUVolumeRayCastMapper ( )
protected
vtkOpenGLGPUVolumeRayCastMapper::~vtkOpenGLGPUVolumeRayCastMapper ( )
protected
vtkOpenGLGPUVolumeRayCastMapper::vtkOpenGLGPUVolumeRayCastMapper ( )
protected
vtkOpenGLGPUVolumeRayCastMapper::~vtkOpenGLGPUVolumeRayCastMapper ( )
protected

Member Function Documentation

static vtkOpenGLGPUVolumeRayCastMapper* vtkOpenGLGPUVolumeRayCastMapper::New ( )
static
static int vtkOpenGLGPUVolumeRayCastMapper::IsTypeOf ( const char *  type)
static
virtual int vtkOpenGLGPUVolumeRayCastMapper::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkGPUVolumeRayCastMapper.

static vtkOpenGLGPUVolumeRayCastMapper* vtkOpenGLGPUVolumeRayCastMapper::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkOpenGLGPUVolumeRayCastMapper::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkGPUVolumeRayCastMapper.

vtkOpenGLGPUVolumeRayCastMapper* vtkOpenGLGPUVolumeRayCastMapper::NewInstance ( ) const
virtual void vtkOpenGLGPUVolumeRayCastMapper::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkGPUVolumeRayCastMapper.

virtual int vtkOpenGLGPUVolumeRayCastMapper::IsRenderSupported ( vtkRenderWindow window,
vtkVolumeProperty property 
)
virtual

Based on hardware and properties, we may or may not be able to render using 3D texture mapping. This indicates if 3D texture mapping is supported by the hardware, and if the other extensions necessary to support the specific properties are available.

virtual void vtkOpenGLGPUVolumeRayCastMapper::ReleaseGraphicsResources ( vtkWindow window)
virtual

Delete OpenGL objects.

Postcondition
done: this->OpenGLObjectsCreated==0

Reimplemented from vtkGPUVolumeRayCastMapper.

static const char* vtkOpenGLGPUVolumeRayCastMapper::OpenGLErrorMessage ( unsigned int  errorCode)
static

Return a string matching the OpenGL errorCode.

Postcondition
result_exists: result!=0
static void vtkOpenGLGPUVolumeRayCastMapper::PrintError ( const char *  headerMessage)
static

Display headerMessage on the standard output and the last OpenGL error message if any.

Precondition
headerMessage_exists: headerMessage!=0
virtual void vtkOpenGLGPUVolumeRayCastMapper::GPURender ( vtkRenderer ,
vtkVolume  
)
protectedvirtual

Handled in the subclass - the actual render method

Precondition
input is up-to-date.

Reimplemented from vtkGPUVolumeRayCastMapper.

virtual void vtkOpenGLGPUVolumeRayCastMapper::PreRender ( vtkRenderer ren,
vtkVolume vol,
double  datasetBounds[6],
double  scalarRange[2],
int  numberOfScalarComponents,
unsigned int  numberOfLevels 
)
protectedvirtual
virtual void vtkOpenGLGPUVolumeRayCastMapper::RenderBlock ( vtkRenderer ren,
vtkVolume vol,
unsigned int  level 
)
protectedvirtual
virtual void vtkOpenGLGPUVolumeRayCastMapper::PostRender ( vtkRenderer ren,
int  numberOfScalarComponents 
)
protectedvirtual
int vtkOpenGLGPUVolumeRayCastMapper::TestRequiredExtension ( vtkOpenGLExtensionManager extensions,
const char *  extensionName 
)
protected

Return if the required OpenGL extension `extensionName' is supported. If not, its name is added to the string of unsupported but required extensions.

Precondition
extensions_exist: extensions!=0
extensionName_exists: extensionName!=0
void vtkOpenGLGPUVolumeRayCastMapper::LoadExtensions ( vtkRenderWindow window)
protected

Attempt to load required and optional OpenGL extensions for the current context window. Variable LoadExtensionsSucceeded is set if all required extensions has been loaded. In addition, variable Supports_GL_ARB_texture_float is set if this extension has been loaded.

Precondition
: window_exists: window!=0
void vtkOpenGLGPUVolumeRayCastMapper::CreateOpenGLObjects ( vtkRenderer ren)
protected

Create OpenGL objects such as textures, buffers and fragment program Ids. It only registers Ids, there is no actual initialization of textures or fragment program.

Precondition
extensions_loaded: this->LoadExtensionsSucceeded
Postcondition
done: this->OpenGLObjectsCreated==1
int vtkOpenGLGPUVolumeRayCastMapper::AllocateFrameBuffers ( vtkRenderer ren)
protected

Allocate memory on the GPU for the framebuffers according to the size of the window or reallocate if the size has changed. Return true if allocation succeeded.

Precondition
ren_exists: ren!=0
opengl_objects_created: this->OpenGLObjectsCreated
Postcondition
right_size: LastSize[]=window size.
int vtkOpenGLGPUVolumeRayCastMapper::LoadScalarField ( vtkImageData input,
vtkImageData maskInput,
int  textureExtent[6],
vtkVolume volume 
)
protected

Load the scalar field (one or four component scalar field), cell or point based for a given subextent of the whole extent (can be the whole extent) as a 3D texture on the GPU. Extents are expressed in point if the cell flag is false or in cells of the cell flag is true. It returns true if it succeeded, false if there is not enough memory on the GPU. If succeeded, it updates the LoadedExtent, LoadedBounds, LoadedCellFlag and LoadedTime. It also succeed if the scalar field is already loaded (ie since last load, input has not changed and cell flag has not changed and requested texture extents are enclosed in the loaded extent).

Precondition
input_exists: input!=0
valid_point_extent: (this->CellFlag || (textureExtent[0]<textureExtent[1] && textureExtent[2]<textureExtent[3] && textureExtent[4]<textureExtent[5])))
valid_cell_extent: (!this->CellFlag || (textureExtent[0]<=textureExtent[1] && textureExtent[2]<=textureExtent[3] && textureExtent[4]<=textureExtent[5])))
int vtkOpenGLGPUVolumeRayCastMapper::UpdateColorTransferFunction ( vtkVolume vol,
int  numberOfScalarComponents 
)
protected

Allocate memory and load color table on the GPU or reload it if the transfer function changed.

Precondition
vol_exists: vol!=0
valid_numberOfScalarComponents: numberOfScalarComponents==1 || numberOfScalarComponents==4
int vtkOpenGLGPUVolumeRayCastMapper::UpdateOpacityTransferFunction ( vtkVolume vol,
int  numberOfScalarComponents,
unsigned int  level 
)
protected

Allocate memory and load opacity table on the GPU or reload it if the transfer functions changed.

Precondition
vol_exists: vol!=0
valid_numberOfScalarComponents: numberOfScalarComponents==1 || numberOfScalarComponents==4
void vtkOpenGLGPUVolumeRayCastMapper::SetupRender ( vtkRenderer ren,
vtkVolume vol 
)
protected

Prepare rendering in the offscreen framebuffer.

Precondition
ren_exists: ren!=0
vol_exists: vol!=0
void vtkOpenGLGPUVolumeRayCastMapper::ClipBoundingBox ( vtkRenderer ren,
double  worldBounds[6],
vtkVolume vol 
)
protected

Clip the bounding box with all clipping planes and the near and far plane

int vtkOpenGLGPUVolumeRayCastMapper::RenderClippedBoundingBox ( int  tcoordFlag,
size_t  currentBlock,
size_t  numberOfBlocks,
vtkRenderWindow renWin 
)
protected

Render the bounding box. The flag indicates whether or not tcoords are rendered too. Return abort status (true==abort).

Precondition
valid_currentBlock: currentBlock>=0 && currentBlock<numberOfBlocks
void vtkOpenGLGPUVolumeRayCastMapper::CopyFBOToTexture ( )
protected

Method used to copy the state of the color buffer (which is in a frame buffer object) to a texture.

void vtkOpenGLGPUVolumeRayCastMapper::CleanupRender ( )
protected

Restore OpenGL state after rendering of the dataset.

void vtkOpenGLGPUVolumeRayCastMapper::RenderTextureToScreen ( vtkRenderer ren)
protected

Render the offscreen buffer to the screen.

Precondition
ren_exists: ren!=0
int vtkOpenGLGPUVolumeRayCastMapper::PowerOfTwoGreaterOrEqual ( int  x)
protected

Compute y=2^n such that x<=y.

Precondition
positive_x: x>=0
Postcondition
valid_result: result>=x
void vtkOpenGLGPUVolumeRayCastMapper::CheckFrameBufferStatus ( )
protected

Display the status of the current framebuffer on the standard output.

vtkStdString vtkOpenGLGPUVolumeRayCastMapper::BufferToString ( int  buffer)
protected

Create a string from a buffer id. The result has to be free by the caller.

void vtkOpenGLGPUVolumeRayCastMapper::DisplayReadAndDrawBuffers ( )
protected

Display the buffers assigned for drawing and reading operations.

void vtkOpenGLGPUVolumeRayCastMapper::DisplayFrameBufferAttachments ( )
protected

Display all the attachments of the current framebuffer object.

void vtkOpenGLGPUVolumeRayCastMapper::DisplayFrameBufferAttachment ( unsigned int  uattachment)
protected

Display a given attachment for the current framebuffer object.

void vtkOpenGLGPUVolumeRayCastMapper::BuildProgram ( vtkRenderWindow w,
int  parallelProjection,
int  raycastMethod,
int  shadeMethod,
int  componentMethod 
)
protected

Concatenate the header string, projection type code and method to the final fragment code in this->FragmentCode.

Precondition
valid_raycastMethod: raycastMethod>= vtkOpenGLGPUVolumeRayCastMapperMethodMaximumIntensityProjection && raycastMethod<=vtkOpenGLGPUVolumeRayCastMapperMethodMinIPFourDependent
void vtkOpenGLGPUVolumeRayCastMapper::GetLightingStatus ( )
protected

Return the current OpenGL state about lighting.

void vtkOpenGLGPUVolumeRayCastMapper::ComputeReductionFactor ( double  allocatedTime)
protected

Update the reduction factor of the render viewport (this->ReductionFactor) according to the time spent in seconds to render the previous frame (this->TimeToDraw) and a time in seconds allocated to render the next frame (allocatedTime).

Precondition
valid_current_reduction_range: this->ReductionFactor>0.0 && this->ReductionFactor<=1.0
positive_TimeToDraw: this->TimeToDraw>=0.0
positive_time: allocatedTime>0
Postcondition
valid_new_reduction_range: this->ReductionFactor>0.0 && this->ReductionFactor<=1.0
void vtkOpenGLGPUVolumeRayCastMapper::RenderWholeVolume ( vtkRenderer ren,
vtkVolume vol 
)
protected

Render a subvolume.

Precondition
this->ProgramShader!=0 and is linked.
void vtkOpenGLGPUVolumeRayCastMapper::RenderRegions ( vtkRenderer ren,
vtkVolume vol 
)
protected

Render a subvolume.

Precondition
this->ProgramShader!=0 and is linked.
int vtkOpenGLGPUVolumeRayCastMapper::RenderSubVolume ( vtkRenderer ren,
double  bounds[6],
vtkVolume vol 
)
protected
void vtkOpenGLGPUVolumeRayCastMapper::LoadProjectionParameters ( vtkRenderer ren,
vtkVolume vol 
)
protected
void vtkOpenGLGPUVolumeRayCastMapper::ComputeNumberOfCroppingRegions ( )
protected

Compute and return the number of cropping regions

void vtkOpenGLGPUVolumeRayCastMapper::GetTextureFormat ( vtkImageData input,
unsigned int internalFormat,
unsigned int format,
unsigned int type,
int componentSize 
)
protected
bool vtkOpenGLGPUVolumeRayCastMapper::TestLoadingScalar ( unsigned int  internalFormat,
unsigned int  format,
unsigned int  type,
int  textureSize[3],
int  componentSize 
)
protected
void vtkOpenGLGPUVolumeRayCastMapper::SlabsFromDatasetToIndex ( double  slabsDataSet[6],
double  slabsPoints[6] 
)
protected
void vtkOpenGLGPUVolumeRayCastMapper::SlabsFromIndexToDataset ( double  slabsPoints[6],
double  slabsDataSet[6] 
)
protected
const char* vtkOpenGLGPUVolumeRayCastMapper::GetEnabledString ( unsigned char  value)
protected
void vtkOpenGLGPUVolumeRayCastMapper::GetOpenGLState ( )
protected
void vtkOpenGLGPUVolumeRayCastMapper::DebugDisplayBox ( vtkPolyData box)
protected
void vtkOpenGLGPUVolumeRayCastMapper::UpdateNoiseTexture ( )
protected
double vtkOpenGLGPUVolumeRayCastMapper::ComputeMinimalSampleDistancePerPixel ( vtkRenderer renderer,
vtkVolume volume 
)
protected

Compute how each axis of a cell is projected on the viewport in pixel. This requires to have information about the camera and about the volume. It set the value of IgnoreSampleDistancePerPixel to true in case of degenerated case (axes aligned with the view).

virtual void vtkOpenGLGPUVolumeRayCastMapper::GetReductionRatio ( double  ratio[3])
protectedvirtual

Return how much the dataset has to be reduced in each dimension to fit on the GPU. If the value is 1.0, there is no need to reduce the dataset.

Precondition
the calling thread has a current OpenGL context.
mapper_supported: IsRenderSupported(renderer->GetRenderWindow(),0) The computation is based on hardware limits (3D texture indexable size) and MaxMemoryInBytes.
Postcondition
valid_i_ratio: ratio[0]>0 && ratio[0]<=1.0
valid_j_ratio: ratio[1]>0 && ratio[1]<=1.0
valid_k_ratio: ratio[2]>0 && ratio[2]<=1.0

Implements vtkGPUVolumeRayCastMapper.

void vtkOpenGLGPUVolumeRayCastMapper::BuildScaleBiasProgram ( vtkRenderWindow w)
protected

Build the fragment shader program that scale and bias a texture for window/level purpose.

static vtkOpenGLGPUVolumeRayCastMapper* vtkOpenGLGPUVolumeRayCastMapper::New ( )
static
static int vtkOpenGLGPUVolumeRayCastMapper::IsTypeOf ( const char *  type)
static
virtual int vtkOpenGLGPUVolumeRayCastMapper::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkGPUVolumeRayCastMapper.

static vtkOpenGLGPUVolumeRayCastMapper* vtkOpenGLGPUVolumeRayCastMapper::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkOpenGLGPUVolumeRayCastMapper::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkGPUVolumeRayCastMapper.

vtkOpenGLGPUVolumeRayCastMapper* vtkOpenGLGPUVolumeRayCastMapper::NewInstance ( ) const
void vtkOpenGLGPUVolumeRayCastMapper::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkGPUVolumeRayCastMapper.

virtual void vtkOpenGLGPUVolumeRayCastMapper::ReleaseGraphicsResources ( vtkWindow )
protectedvirtual

WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being consumed by this mapper. The parameter window could be used to determine which graphic resources to release.

Reimplemented from vtkGPUVolumeRayCastMapper.

void vtkOpenGLGPUVolumeRayCastMapper::BuildShader ( vtkRenderer ren,
vtkVolume vol,
int  noOfCmponents 
)
protected
virtual void vtkOpenGLGPUVolumeRayCastMapper::PreRender ( vtkRenderer vtkNotUsedren,
vtkVolume vtkNotUsedvol,
double   vtkNotUsed(datasetBounds)[6],
double   vtkNotUsed(scalarRange)[2],
int   vtkNotUsednoOfComponents,
unsigned int   vtkNotUsednumberOfLevels 
)
inlineprotectedvirtual

Definition at line 48 of file vtkOpenGLGPUVolumeRayCastMapper.h.

virtual void vtkOpenGLGPUVolumeRayCastMapper::RenderBlock ( vtkRenderer vtkNotUsedren,
vtkVolume vtkNotUsedvol,
unsigned int   vtkNotUsedlevel 
)
inlineprotectedvirtual

Definition at line 56 of file vtkOpenGLGPUVolumeRayCastMapper.h.

virtual void vtkOpenGLGPUVolumeRayCastMapper::PostRender ( vtkRenderer vtkNotUsedren,
int   vtkNotUsednoOfComponents 
)
inlineprotectedvirtual

Definition at line 60 of file vtkOpenGLGPUVolumeRayCastMapper.h.

void vtkOpenGLGPUVolumeRayCastMapper::GPURender ( vtkRenderer ,
vtkVolume  
)
protectedvirtual

Handled in the subclass - the actual render method

Precondition
input is up-to-date.

Reimplemented from vtkGPUVolumeRayCastMapper.

void vtkOpenGLGPUVolumeRayCastMapper::ComputeReductionFactor ( double  allocatedTime)
protected
void vtkOpenGLGPUVolumeRayCastMapper::GetReductionRatio ( double ratio)
inlineprotected

Definition at line 80 of file vtkOpenGLGPUVolumeRayCastMapper.h.

virtual int vtkOpenGLGPUVolumeRayCastMapper::IsRenderSupported ( vtkRenderWindow vtkNotUsedwindow,
vtkVolumeProperty vtkNotUsedproperty 
)
inlineprotectedvirtual

Based on hardware and properties, we may or may not be able to render using 3D texture mapping. This indicates if 3D texture mapping is supported by the hardware, and if the other extensions necessary to support the specific properties are available.

Reimplemented from vtkGPUVolumeRayCastMapper.

Definition at line 87 of file vtkOpenGLGPUVolumeRayCastMapper.h.

Member Data Documentation

int vtkOpenGLGPUVolumeRayCastMapper::NumberOfCroppingRegions
protected

Definition at line 333 of file vtkOpenGLGPUVolumeRayCastMapper.h.

double vtkOpenGLGPUVolumeRayCastMapper::BoundingBox[8][3]
protected

Definition at line 336 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkPolyData* vtkOpenGLGPUVolumeRayCastMapper::PolyDataBoundingBox
protected

Definition at line 339 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkPlaneCollection* vtkOpenGLGPUVolumeRayCastMapper::Planes
protected

Definition at line 340 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkPlane* vtkOpenGLGPUVolumeRayCastMapper::NearPlane
protected

Definition at line 341 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkClipConvexPolyData* vtkOpenGLGPUVolumeRayCastMapper::Clip
protected

Definition at line 343 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkMatrix4x4* vtkOpenGLGPUVolumeRayCastMapper::InvVolumeMatrix
protected

Definition at line 344 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkDensifyPolyData* vtkOpenGLGPUVolumeRayCastMapper::Densify
protected

Definition at line 346 of file vtkOpenGLGPUVolumeRayCastMapper.h.

int vtkOpenGLGPUVolumeRayCastMapper::OpenGLObjectsCreated
protected

Definition at line 348 of file vtkOpenGLGPUVolumeRayCastMapper.h.

int vtkOpenGLGPUVolumeRayCastMapper::NumberOfFrameBuffers
protected

Definition at line 349 of file vtkOpenGLGPUVolumeRayCastMapper.h.

unsigned int vtkOpenGLGPUVolumeRayCastMapper::FrameBufferObject
protected

Definition at line 351 of file vtkOpenGLGPUVolumeRayCastMapper.h.

unsigned int vtkOpenGLGPUVolumeRayCastMapper::DepthRenderBufferObject
protected

Definition at line 352 of file vtkOpenGLGPUVolumeRayCastMapper.h.

unsigned int vtkOpenGLGPUVolumeRayCastMapper::TextureObjects[5]
protected

Definition at line 356 of file vtkOpenGLGPUVolumeRayCastMapper.h.

unsigned int vtkOpenGLGPUVolumeRayCastMapper::MaxValueFrameBuffer
protected

Definition at line 358 of file vtkOpenGLGPUVolumeRayCastMapper.h.

unsigned int vtkOpenGLGPUVolumeRayCastMapper::MaxValueFrameBuffer2
protected

Definition at line 359 of file vtkOpenGLGPUVolumeRayCastMapper.h.

int vtkOpenGLGPUVolumeRayCastMapper::ReducedSize[2]
protected

Definition at line 360 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkPolyData* vtkOpenGLGPUVolumeRayCastMapper::ClippedBoundingBox
protected

Definition at line 362 of file vtkOpenGLGPUVolumeRayCastMapper.h.

int vtkOpenGLGPUVolumeRayCastMapper::LastSize[2]
protected

Definition at line 364 of file vtkOpenGLGPUVolumeRayCastMapper.h.

double vtkOpenGLGPUVolumeRayCastMapper::ReductionFactor
protected

Definition at line 366 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkUnsupportedRequiredExtensionsStringStream* vtkOpenGLGPUVolumeRayCastMapper::UnsupportedRequiredExtensions
protected

Definition at line 370 of file vtkOpenGLGPUVolumeRayCastMapper.h.

int vtkOpenGLGPUVolumeRayCastMapper::LoadExtensionsSucceeded
protected

Definition at line 371 of file vtkOpenGLGPUVolumeRayCastMapper.h.

int vtkOpenGLGPUVolumeRayCastMapper::Supports_GL_ARB_texture_float
protected

Definition at line 373 of file vtkOpenGLGPUVolumeRayCastMapper.h.

int vtkOpenGLGPUVolumeRayCastMapper::SupportsPixelBufferObjects
protected

Definition at line 374 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkTimeStamp vtkOpenGLGPUVolumeRayCastMapper::DataBufferTime
protected

Definition at line 376 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkMatrix4x4* vtkOpenGLGPUVolumeRayCastMapper::TempMatrix[3]
protected

Definition at line 380 of file vtkOpenGLGPUVolumeRayCastMapper.h.

double vtkOpenGLGPUVolumeRayCastMapper::TableRange[2]
protected

Definition at line 382 of file vtkOpenGLGPUVolumeRayCastMapper.h.

int vtkOpenGLGPUVolumeRayCastMapper::ErrorLine
protected

Definition at line 388 of file vtkOpenGLGPUVolumeRayCastMapper.h.

int vtkOpenGLGPUVolumeRayCastMapper::ErrorColumn
protected

Definition at line 389 of file vtkOpenGLGPUVolumeRayCastMapper.h.

char* vtkOpenGLGPUVolumeRayCastMapper::ErrorString
protected

Definition at line 390 of file vtkOpenGLGPUVolumeRayCastMapper.h.

int vtkOpenGLGPUVolumeRayCastMapper::LastParallelProjection
protected

Definition at line 394 of file vtkOpenGLGPUVolumeRayCastMapper.h.

int vtkOpenGLGPUVolumeRayCastMapper::LastRayCastMethod
protected

Definition at line 395 of file vtkOpenGLGPUVolumeRayCastMapper.h.

int vtkOpenGLGPUVolumeRayCastMapper::LastCroppingMode
protected

Definition at line 396 of file vtkOpenGLGPUVolumeRayCastMapper.h.

int vtkOpenGLGPUVolumeRayCastMapper::LastComponent
protected

Definition at line 397 of file vtkOpenGLGPUVolumeRayCastMapper.h.

int vtkOpenGLGPUVolumeRayCastMapper::LastShade
protected

Definition at line 398 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkImageData* vtkOpenGLGPUVolumeRayCastMapper::SmallInput
protected

Definition at line 400 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkTimeStamp vtkOpenGLGPUVolumeRayCastMapper::SmallInputBuildTime
protected

Definition at line 401 of file vtkOpenGLGPUVolumeRayCastMapper.h.

unsigned int vtkOpenGLGPUVolumeRayCastMapper::SavedFrameBuffer
protected

Definition at line 414 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkTessellatedBoxSource* vtkOpenGLGPUVolumeRayCastMapper::BoxSource
protected

Definition at line 416 of file vtkOpenGLGPUVolumeRayCastMapper.h.

float* vtkOpenGLGPUVolumeRayCastMapper::NoiseTexture
protected

Definition at line 418 of file vtkOpenGLGPUVolumeRayCastMapper.h.

int vtkOpenGLGPUVolumeRayCastMapper::NoiseTextureSize
protected

Definition at line 419 of file vtkOpenGLGPUVolumeRayCastMapper.h.

unsigned int vtkOpenGLGPUVolumeRayCastMapper::NoiseTextureId
protected

Definition at line 420 of file vtkOpenGLGPUVolumeRayCastMapper.h.

bool vtkOpenGLGPUVolumeRayCastMapper::IgnoreSampleDistancePerPixel
protected

Definition at line 422 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkMapDataArrayTextureId* vtkOpenGLGPUVolumeRayCastMapper::ScalarsTextures
protected

Definition at line 424 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkMapMaskTextureId* vtkOpenGLGPUVolumeRayCastMapper::MaskTextures
protected

Definition at line 425 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkRGBTable* vtkOpenGLGPUVolumeRayCastMapper::RGBTable
protected

Definition at line 427 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkRGBTable* vtkOpenGLGPUVolumeRayCastMapper::Mask1RGBTable
protected

Definition at line 428 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkRGBTable* vtkOpenGLGPUVolumeRayCastMapper::Mask2RGBTable
protected

Definition at line 429 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkOpacityTables* vtkOpenGLGPUVolumeRayCastMapper::OpacityTables
protected

Definition at line 431 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkKWScalarField* vtkOpenGLGPUVolumeRayCastMapper::CurrentScalar
protected

Definition at line 433 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkKWMask* vtkOpenGLGPUVolumeRayCastMapper::CurrentMask
protected

Definition at line 434 of file vtkOpenGLGPUVolumeRayCastMapper.h.

float vtkOpenGLGPUVolumeRayCastMapper::ActualSampleDistance
protected

Definition at line 436 of file vtkOpenGLGPUVolumeRayCastMapper.h.

double vtkOpenGLGPUVolumeRayCastMapper::LastProgressEventTime
protected

Definition at line 438 of file vtkOpenGLGPUVolumeRayCastMapper.h.

bool vtkOpenGLGPUVolumeRayCastMapper::PreserveOrientation
protected

Definition at line 440 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkShaderProgram2* vtkOpenGLGPUVolumeRayCastMapper::Program
protected

Definition at line 442 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkShader2* vtkOpenGLGPUVolumeRayCastMapper::Main
protected

Definition at line 443 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkShader2* vtkOpenGLGPUVolumeRayCastMapper::Projection
protected

Definition at line 444 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkShader2* vtkOpenGLGPUVolumeRayCastMapper::Trace
protected

Definition at line 445 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkShader2* vtkOpenGLGPUVolumeRayCastMapper::CroppingShader
protected

Definition at line 446 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkShader2* vtkOpenGLGPUVolumeRayCastMapper::Component
protected

Definition at line 447 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkShader2* vtkOpenGLGPUVolumeRayCastMapper::Shade
protected

Definition at line 448 of file vtkOpenGLGPUVolumeRayCastMapper.h.

bool vtkOpenGLGPUVolumeRayCastMapper::SizeChanged
protected

Definition at line 452 of file vtkOpenGLGPUVolumeRayCastMapper.h.

vtkShaderProgram2* vtkOpenGLGPUVolumeRayCastMapper::ScaleBiasProgram
protected

Definition at line 454 of file vtkOpenGLGPUVolumeRayCastMapper.h.


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