SIVIC API  0.9.26
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | List of all members
svkOpenGLOrientedImageActor Class Reference

#include <svkOpenGLOrientedImageActor.h>

Inheritance diagram for svkOpenGLOrientedImageActor:

Public Member Functions

 vtkTypeMacro (svkOpenGLOrientedImageActor, vtkOpenGLImageActor)
 
 svkOpenGLOrientedImageActor ()
 
 ~svkOpenGLOrientedImageActor ()
 
double * GetBounds ()
 Get the bounds for this Prop3D as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax). More...
 
double * GetDisplayBounds ()
 Get the bounds for this Volume as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax). More...
 
void Render (vtkRenderer *ren)
 
void Load (vtkRenderer *ren)
 
void InternalRender (vtkRenderer *ren)
 
virtual void SetInput (vtkImageData *args)
 
unsigned char * MakeDataSuitable (int &xsize, int &ysize, int &release, int &reuseTexture)
 

Static Public Member Functions

static
svkOpenGLOrientedImageActor
New ()
 

Constructor & Destructor Documentation

Constructor.

Destructor.

Member Function Documentation

double * GetBounds ( )

Get the bounds for this Prop3D as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).

References svkOpenGLOrientedImageActor::GetDisplayBounds().

double * GetDisplayBounds ( )

Get the bounds for this Volume as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).

Referenced by svkOpenGLOrientedImageActor::GetBounds().

void InternalRender ( vtkRenderer *  ren)
void Load ( vtkRenderer *  ren)

This Method has been copied from vtk for two reasons:

  1. Because it makes a call the MakeDataSuitable which is not virtual and we had to override it.
  2. There semes to be a bug in the vtk implementation. When the actor is moved from one render window to another its RenderWindow member variable is not updated UNLESS the Texture size changes. To work around this we hare setting the texture size to 0 whene the render window changes. This causes the algorithm to regenerate the texture.

References svkOpenGLOrientedImageActor::MakeDataSuitable().

Referenced by svkOpenGLOrientedImageActor::InternalRender().

unsigned char * MakeDataSuitable ( int &  xsize,
int &  ysize,
int &  release,
int &  reuseTexture 
)

The key to getting oblique data to work, this sits up the texture mapping. NOTE: This method is override in its SUPERCLASS. As of now I am not sure why this is necessary, but polymorphism fails if this namespace is used. This is likely due to the fact that this is OpenGL specific, and I have bypassed overriding the factory– needs to be fixed.

Referenced by svkOpenGLOrientedImageActor::Load().

static svkOpenGLOrientedImageActor* New ( )
static
void Render ( vtkRenderer *  ren)
void SetInput ( vtkImageData *  args)
virtual
vtkTypeMacro ( svkOpenGLOrientedImageActor  ,
vtkOpenGLImageActor   
)

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