#include <vtkFixedPointRayCastImage.h>
Inheritance diagram for vtkFixedPointRayCastImage:
This is a helper class for storing the ray cast image including the underlying data and the size of the image. This class is not intended to be used directly - just as an internal class in the vtkFixedPointVolumeRayCastMapper so that multiple mappers can share the same image. This class also stored the ZBuffer (if necessary due to intermixed geometry). Perhaps this class could be generalized in the future to be used for other ray cast methods other than the fixed point method.
Definition at line 37 of file vtkFixedPointRayCastImage.h.
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
void | AllocateImage () |
float | GetZBufferValue (int x, int y) |
float * | GetZBuffer () |
void | AllocateZBuffer () |
unsigned short * | GetImage () |
virtual void | SetImageViewportSize (int, int) |
void | SetImageViewportSize (int[2]) |
virtual int * | GetImageViewportSize () |
virtual void | GetImageViewportSize (int data[2]) |
virtual void | SetImageMemorySize (int, int) |
void | SetImageMemorySize (int[2]) |
virtual int * | GetImageMemorySize () |
virtual void | GetImageMemorySize (int data[2]) |
virtual void | SetImageInUseSize (int, int) |
void | SetImageInUseSize (int[2]) |
virtual int * | GetImageInUseSize () |
virtual void | GetImageInUseSize (int data[2]) |
virtual void | SetImageOrigin (int, int) |
void | SetImageOrigin (int[2]) |
virtual int * | GetImageOrigin () |
virtual void | GetImageOrigin (int data[2]) |
virtual void | SetImageSampleDistance (float) |
virtual float | GetImageSampleDistance () |
void | ClearImage () |
virtual void | SetZBufferSize (int, int) |
void | SetZBufferSize (int[2]) |
virtual int * | GetZBufferSize () |
virtual void | GetZBufferSize (int data[2]) |
virtual void | SetZBufferOrigin (int, int) |
void | SetZBufferOrigin (int[2]) |
virtual int * | GetZBufferOrigin () |
virtual void | GetZBufferOrigin (int data[2]) |
virtual void | SetUseZBuffer (int) |
virtual int | GetUseZBuffer () |
virtual void | UseZBufferOn () |
virtual void | UseZBufferOff () |
Static Public Member Functions | |
static vtkFixedPointRayCastImage * | New () |
static int | IsTypeOf (const char *type) |
static vtkFixedPointRayCastImage * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkFixedPointRayCastImage () | |
~vtkFixedPointRayCastImage () | |
Protected Attributes | |
int | ImageViewportSize [2] |
int | ImageMemorySize [2] |
int | ImageInUseSize [2] |
int | ImageOrigin [2] |
float | ImageSampleDistance |
unsigned short * | Image |
int | ZBufferSize [2] |
int | ZBufferMemorySize |
int | ZBufferOrigin [2] |
int | UseZBuffer |
float * | ZBuffer |
|
Reimplemented from vtkObject. Definition at line 41 of file vtkFixedPointRayCastImage.h. |
|
|
|
|
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. Reimplemented from vtkObject. |
|
Reimplemented from vtkObject. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkObject. |
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkObject. |
|
Reimplemented from vtkObject. |
|
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 vtkObject. |
|
Get the internal storage for the image. It is a pointer to unsigned short with four components (RGBA) per pixel. This memory is allocated when the AllocateImage method is called. Definition at line 47 of file vtkFixedPointRayCastImage.h. |
|
Set / Get the ImageViewportSize. This is the size of the whole viewport in pixels. |
|
Get the internal storage for the image. It is a pointer to unsigned short with four components (RGBA) per pixel. This memory is allocated when the AllocateImage method is called. |
|
Get the internal storage for the image. It is a pointer to unsigned short with four components (RGBA) per pixel. This memory is allocated when the AllocateImage method is called. |
|
Get the internal storage for the image. It is a pointer to unsigned short with four components (RGBA) per pixel. This memory is allocated when the AllocateImage method is called. |
|
Set / Get the ImageMemorySize. This is the size in pixels of the Image ivar. This will be a power of two in order to ensure that the texture can be rendered by graphics hardware that requires power of two textures. |
|
Set / Get the ImageMemorySize. This is the size in pixels of the Image ivar. This will be a power of two in order to ensure that the texture can be rendered by graphics hardware that requires power of two textures. |
|
Set / Get the ImageMemorySize. This is the size in pixels of the Image ivar. This will be a power of two in order to ensure that the texture can be rendered by graphics hardware that requires power of two textures. |
|
Set / Get the ImageMemorySize. This is the size in pixels of the Image ivar. This will be a power of two in order to ensure that the texture can be rendered by graphics hardware that requires power of two textures. |
|
Set / Get the size of the image we are actually using. As long as the memory size is big enough, but not too big, we won't bother deleting and re-allocated, we'll just continue to use the memory size we have. This size will always be equal to or less than the ImageMemorySize. |
|
Set / Get the size of the image we are actually using. As long as the memory size is big enough, but not too big, we won't bother deleting and re-allocated, we'll just continue to use the memory size we have. This size will always be equal to or less than the ImageMemorySize. |
|
Set / Get the size of the image we are actually using. As long as the memory size is big enough, but not too big, we won't bother deleting and re-allocated, we'll just continue to use the memory size we have. This size will always be equal to or less than the ImageMemorySize. |
|
Set / Get the size of the image we are actually using. As long as the memory size is big enough, but not too big, we won't bother deleting and re-allocated, we'll just continue to use the memory size we have. This size will always be equal to or less than the ImageMemorySize. |
|
Set / Get the origin of the image. This is the starting pixel within the whole viewport that our Image starts on. That is, we could be generating just a subregion of the whole viewport due to the fact that our volume occupies only a portion of the viewport. The Image pixels will start from this location. |
|
Set / Get the origin of the image. This is the starting pixel within the whole viewport that our Image starts on. That is, we could be generating just a subregion of the whole viewport due to the fact that our volume occupies only a portion of the viewport. The Image pixels will start from this location. |
|
Set / Get the origin of the image. This is the starting pixel within the whole viewport that our Image starts on. That is, we could be generating just a subregion of the whole viewport due to the fact that our volume occupies only a portion of the viewport. The Image pixels will start from this location. |
|
Set / Get the origin of the image. This is the starting pixel within the whole viewport that our Image starts on. That is, we could be generating just a subregion of the whole viewport due to the fact that our volume occupies only a portion of the viewport. The Image pixels will start from this location. |
|
Set / Get the ImageSampleDistance that will be used for rendering. This is a copy of the value stored in the mapper. It is stored here for sharing between all mappers that are participating in the creation of this image. |
|
Set / Get the ImageSampleDistance that will be used for rendering. This is a copy of the value stored in the mapper. It is stored here for sharing between all mappers that are participating in the creation of this image. |
|
Call this method once the ImageMemorySize has been set the allocate the image. If an image already exists, it will be deleted first. |
|
Clear the image to (0,0,0,0) for each pixel. |
|
Set / Get the size of the ZBuffer in pixels. The zbuffer will be captured for the region of the screen covered by the ImageInUseSize image. However, due to subsampling, the size of the ImageInUseSize image may be smaller than this ZBuffer image which will be captured at screen resolution. |
|
Clear the image to (0,0,0,0) for each pixel. |
|
Clear the image to (0,0,0,0) for each pixel. |
|
Clear the image to (0,0,0,0) for each pixel. |
|
Set / Get the origin of the ZBuffer. This is the distance from the lower left corner of the viewport where the ZBuffer started (multiply the ImageOrigin by the ImageSampleDistance) This is the pixel location on the full resolution viewport where the ZBuffer capture will start. These values are used to convert the (x,y) pixel location within the ImageInUseSize image into a ZBuffer location. |
|
Set / Get the origin of the ZBuffer. This is the distance from the lower left corner of the viewport where the ZBuffer started (multiply the ImageOrigin by the ImageSampleDistance) This is the pixel location on the full resolution viewport where the ZBuffer capture will start. These values are used to convert the (x,y) pixel location within the ImageInUseSize image into a ZBuffer location. |
|
Set / Get the origin of the ZBuffer. This is the distance from the lower left corner of the viewport where the ZBuffer started (multiply the ImageOrigin by the ImageSampleDistance) This is the pixel location on the full resolution viewport where the ZBuffer capture will start. These values are used to convert the (x,y) pixel location within the ImageInUseSize image into a ZBuffer location. |
|
Set / Get the origin of the ZBuffer. This is the distance from the lower left corner of the viewport where the ZBuffer started (multiply the ImageOrigin by the ImageSampleDistance) This is the pixel location on the full resolution viewport where the ZBuffer capture will start. These values are used to convert the (x,y) pixel location within the ImageInUseSize image into a ZBuffer location. |
|
The UseZBuffer flag indicates whether the ZBuffer is in use. The ZBuffer is captured and used when IntermixIntersectingGeometry is on in the mapper, and when there are props that have been rendered before the current volume. |
|
The UseZBuffer flag indicates whether the ZBuffer is in use. The ZBuffer is captured and used when IntermixIntersectingGeometry is on in the mapper, and when there are props that have been rendered before the current volume. |
|
The UseZBuffer flag indicates whether the ZBuffer is in use. The ZBuffer is captured and used when IntermixIntersectingGeometry is on in the mapper, and when there are props that have been rendered before the current volume. |
|
The UseZBuffer flag indicates whether the ZBuffer is in use. The ZBuffer is captured and used when IntermixIntersectingGeometry is on in the mapper, and when there are props that have been rendered before the current volume. |
|
Get the ZBuffer value corresponding to location (x,y) where (x,y) are indexing into the ImageInUse image. This must be converted to the zbuffer image coordinates. Nearest neighbor value is returned. If UseZBuffer is off, then 1.0 is always returned. |
|
Get the ZBuffer. The size of the ZBuffer should be specific with SetZBufferSize, and AllocateZBuffer method should be called before getting the ZBuffer. Definition at line 140 of file vtkFixedPointRayCastImage.h. |
|
|
|
Definition at line 151 of file vtkFixedPointRayCastImage.h. |
|
Definition at line 157 of file vtkFixedPointRayCastImage.h. |
|
Definition at line 163 of file vtkFixedPointRayCastImage.h. |
|
Definition at line 167 of file vtkFixedPointRayCastImage.h. |
|
Definition at line 171 of file vtkFixedPointRayCastImage.h. |
|
Definition at line 174 of file vtkFixedPointRayCastImage.h. |
|
Definition at line 177 of file vtkFixedPointRayCastImage.h. |
|
Definition at line 182 of file vtkFixedPointRayCastImage.h. |
|
Definition at line 186 of file vtkFixedPointRayCastImage.h. |
|
Definition at line 189 of file vtkFixedPointRayCastImage.h. |
|
Definition at line 192 of file vtkFixedPointRayCastImage.h. |