Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

VPVolume Class Reference

#include <vpvolume.h>

Inheritance diagram for VPVolume:

VPImage VPGraphicObj VPSceneNode VPMemoryObj List of all members.

Public Member Functions

 VPVolume ()
 VPVolume (const char *n, int t, int dh, int dv, int s, int b)
 ~VPVolume ()
void vpReadRawFile (const char *n)
void vpReadIFile (const char *n, char *p)
void vpReadVolFile (const char *n)
float vpGetLightValue (int i, int j, int k)
unsigned int vpGetValue (int i, int j, int k)
int vpGetZDimension ()
void vpRender ()
void vpAllocateGrayImage (int h, int w)
void vpAllocateColorImage (int h, int w)
void vpProcessLightedVolume (VPVector3D ld, float al)
VPVector3D vpGetSobelGradient (int i, int j, int k)
VPVector3D vpGetLinearGradientEstimation (int i, int j, int k)
VPVector3D vpGetCentralDifferenceGradient (int i, int j, int k)
void vpSetSliceTopCamera ()
void vpSetSliceFrontCamera ()
void vpSetSliceSideCamera ()
void vpDisplayGray ()
void vpDisplayColor ()
void vpRotate ()
void vpTranslate (VPPoint3D t)
void vpScale (VPPoint3D s)
void vpSetVisualizationType (int vp)
int vpGetVisualizationType ()
void vpSetTopSlice (int v)
int vpGetTopSlice ()
void vpSetSideSlice (int v)
int vpGetSideSlice ()
void vpSetFrontSlice (int v)
int vpGetFrontSlice ()
void vpSetActiveCamera (VPCamera *c)
void vpSetRayCastingSBand (VPPoint3D sb, int vt)
int vpGetRayCastingSBand ()
void vpSetRayCastingTBand (VPPoint3D tb, int vt)
int vpGetRayCastingTBand ()
void vpSetRayCastingSampleStep (float s)
float vpGetRayCastingSampleStep ()
void vpSetRayCastingAmbientLight (float a)
float vpGetRayCastingAmbientLight ()
void vpSetRayCastingDiffuseLight (float d)
float vpGetRayCastingDiffuseLight ()
void vpSetRayCastingSpecularExponent (int s)
int vpGetRayCastingSpecularExponent ()
void vpSetRayCastingSpecular (bool s)
bool vpGetRayCastingSpecular ()
void vpSetRayCastingShadingMethod (int sm)
int vpGetRayCastingShadingMethod ()
void vpSetRayCastingTypeOfCuttingTool (int t)
int vpGetRayCastingTypeOfCuttingTool ()
void vpSetOpacityComputation (int oc)
int vpGetOpacityComputation ()
void vpSetOpacityTable (float t[])
float * vpGetOpacityTable ()
void vpSetColorTable (VPColor c[])
VPColorvpGetColorTable ()
void vpSetControlPoints (int cp[], int n)
void vpGetControlPoints (int cp[], int &n)
void vpSetControlPoints (int cp[], VPColor c[], int n)
void vpGetControlPoints (int cp[], VPColor c[], int &n)
void vpProcessHistogram ()
void vpProcessCenterFocalPoint ()
VPPoint3D vpGetCenterFocalPoint ()
unsigned int vpGetMinVolumeColor ()
unsigned int vpGetMaxVolumeColor ()
VPTable vpGetControlTables ()
GLvoid vpSwapBytes (GLint *intPtr, int sizeBytes)
void vpAdjustScale (int x, int y, int z)
VPPoint3D vpGetScale ()
VPPoint2D vpGetSliceViewSBandPoint ()
VPPoint2D vpGetSliceViewTBandPoint ()
int vpGetFileType ()
void vpSetCameraLocationForInnerStructure (VPPoint3D c)
VPPoint3D vpGetCameraLocationForInnerStructure ()

Detailed Description

Deprecated:

Definition at line 111 of file vpvolume.h.


Constructor & Destructor Documentation

VPVolume::VPVolume  ) 
 

Definition at line 46 of file vpvolume.cpp.

References DEFAULTVIS, LINEAROPAC, VPSceneNode::NONE, and NULL.

VPVolume::VPVolume const char *  n,
int  t,
int  dh,
int  dv,
int  s,
int  b
 

Definition at line 75 of file vpvolume.cpp.

References ARQCT, ARQMRI, ARQPET, ARQSPECT, DEFAULTVIS, VPSceneNode::description, LINEAROPAC, NULL, vpProcessCenterFocalPoint(), vpProcessHistogram(), VPTable::vpProcessMaxGradient(), vpReadIFile(), vpReadRawFile(), vpReadVolFile(), VPTable::vpSetMaxVolumeDensity(), VPTable::vpSetMinVolumeDensity(), VPImage::xDimension, and VPImage::yDimension.

VPVolume::~VPVolume  ) 
 

Definition at line 637 of file vpvolume.cpp.


Member Function Documentation

void VPVolume::vpAdjustScale int  x,
int  y,
int  z
 

Definition at line 2044 of file vpvolume.cpp.

References VPPoint3D::x, VPImage::xDimension, VPPoint3D::y, VPImage::yDimension, and VPPoint3D::z.

void VPVolume::vpAllocateColorImage int  h,
int  w
 

Definition at line 1072 of file vpvolume.cpp.

References blue, green, and red.

Referenced by vpRender().

void VPVolume::vpAllocateGrayImage int  h,
int  w
 

Definition at line 1053 of file vpvolume.cpp.

Referenced by vpRender().

void VPVolume::vpDisplayColor  ) 
 

Definition at line 1260 of file vpvolume.cpp.

References blue, green, red, VPSlice::vpGetLineSBand(), VPSlice::vpGetLineTBand(), VPSlice::vpGetViewSBandPoint(), VPSlice::vpGetViewTBandPoint(), VPPoint2D::x, and VPPoint2D::y.

Referenced by vpRender().

void VPVolume::vpDisplayGray  ) 
 

Definition at line 1233 of file vpvolume.cpp.

Referenced by vpRender().

VPPoint3D VPVolume::vpGetCameraLocationForInnerStructure  ) 
 

Definition at line 2132 of file vpvolume.cpp.

VPPoint3D VPVolume::vpGetCenterFocalPoint  ) 
 

Definition at line 1976 of file vpvolume.cpp.

VPVector3D VPVolume::vpGetCentralDifferenceGradient int  i,
int  j,
int  k
 

Definition at line 850 of file vpvolume.cpp.

References VPPoint3D::x, VPImage::xDimension, VPPoint3D::y, VPImage::yDimension, and VPPoint3D::z.

VPColor * VPVolume::vpGetColorTable  ) 
 

Definition at line 1814 of file vpvolume.cpp.

References VPTable::vpGetColorTable().

void VPVolume::vpGetControlPoints int  cp[],
VPColor  c[],
int &  n
 

Definition at line 1858 of file vpvolume.cpp.

References VPTable::vpGetControlPoints().

void VPVolume::vpGetControlPoints int  cp[],
int &  n
 

Definition at line 1836 of file vpvolume.cpp.

References VPTable::vpGetControlPoints().

VPTable VPVolume::vpGetControlTables  ) 
 

Definition at line 2009 of file vpvolume.cpp.

int VPVolume::vpGetFileType  ) 
 

Definition at line 2107 of file vpvolume.cpp.

int VPVolume::vpGetFrontSlice  ) 
 

Definition at line 1538 of file vpvolume.cpp.

float VPVolume::vpGetLightValue int  i,
int  j,
int  k
 

Definition at line 921 of file vpvolume.cpp.

VPVector3D VPVolume::vpGetLinearGradientEstimation int  i,
int  j,
int  k
 

Definition at line 766 of file vpvolume.cpp.

References VPPoint3D::x, VPImage::xDimension, VPPoint3D::y, VPImage::yDimension, and VPPoint3D::z.

unsigned int VPVolume::vpGetMaxVolumeColor  ) 
 

Definition at line 1998 of file vpvolume.cpp.

unsigned int VPVolume::vpGetMinVolumeColor  ) 
 

Definition at line 1987 of file vpvolume.cpp.

int VPVolume::vpGetOpacityComputation  ) 
 

Definition at line 1770 of file vpvolume.cpp.

float * VPVolume::vpGetOpacityTable  ) 
 

Definition at line 1792 of file vpvolume.cpp.

References VPTable::vpGetOpacityTable().

float VPVolume::vpGetRayCastingAmbientLight  ) 
 

Definition at line 1637 of file vpvolume.cpp.

References VPRayCasting::vpGetAmbientLight().

float VPVolume::vpGetRayCastingDiffuseLight  ) 
 

Definition at line 1659 of file vpvolume.cpp.

References VPRayCasting::vpGetDiffuseLight().

float VPVolume::vpGetRayCastingSampleStep  ) 
 

Definition at line 1615 of file vpvolume.cpp.

References VPRayCasting::vpGetSampleStep().

int VPVolume::vpGetRayCastingSBand  ) 
 

Definition at line 1571 of file vpvolume.cpp.

References VPRayCasting::vpGetEndSBand().

int VPVolume::vpGetRayCastingShadingMethod  ) 
 

Definition at line 1725 of file vpvolume.cpp.

References VPRayCasting::vpGetShadingMethod().

bool VPVolume::vpGetRayCastingSpecular  ) 
 

Definition at line 1703 of file vpvolume.cpp.

References VPRayCasting::vpGetSpecular().

int VPVolume::vpGetRayCastingSpecularExponent  ) 
 

Definition at line 1681 of file vpvolume.cpp.

References VPRayCasting::vpGetSpecularExponent().

int VPVolume::vpGetRayCastingTBand  ) 
 

Definition at line 1593 of file vpvolume.cpp.

References VPRayCasting::vpGetEndTBand().

int VPVolume::vpGetRayCastingTypeOfCuttingTool  ) 
 

Definition at line 1747 of file vpvolume.cpp.

References VPRayCasting::vpGetTypeOfCuttingTool().

VPPoint3D VPVolume::vpGetScale  ) 
 

Definition at line 2074 of file vpvolume.cpp.

int VPVolume::vpGetSideSlice  ) 
 

Definition at line 1513 of file vpvolume.cpp.

VPPoint2D VPVolume::vpGetSliceViewSBandPoint  ) 
 

Definition at line 2085 of file vpvolume.cpp.

References VPSlice::vpGetViewSBandPoint().

VPPoint2D VPVolume::vpGetSliceViewTBandPoint  ) 
 

Definition at line 2096 of file vpvolume.cpp.

References VPSlice::vpGetViewTBandPoint().

VPVector3D VPVolume::vpGetSobelGradient int  i,
int  j,
int  k
 

Definition at line 708 of file vpvolume.cpp.

References VPPoint3D::x, VPImage::xDimension, VPPoint3D::y, VPImage::yDimension, and VPPoint3D::z.

Referenced by vpProcessLightedVolume().

int VPVolume::vpGetTopSlice  ) 
 

Definition at line 1488 of file vpvolume.cpp.

unsigned int VPVolume::vpGetValue int  i,
int  j,
int  k
 

Definition at line 897 of file vpvolume.cpp.

int VPVolume::vpGetVisualizationType  ) 
 

Definition at line 1463 of file vpvolume.cpp.

int VPVolume::vpGetZDimension  )  [inline]
 

Definition at line 149 of file vpvolume.h.

Referenced by vpSetSliceFrontCamera(), vpSetSliceSideCamera(), and vpSetSliceTopCamera().

void VPVolume::vpProcessCenterFocalPoint  ) 
 

Definition at line 1911 of file vpvolume.cpp.

References VPPoint3D::x, VPImage::xDimension, VPPoint3D::y, VPImage::yDimension, and VPPoint3D::z.

Referenced by VPVolume().

void VPVolume::vpProcessHistogram  ) 
 

Definition at line 1869 of file vpvolume.cpp.

References VPImage::xDimension, and VPImage::yDimension.

Referenced by VPVolume().

void VPVolume::vpProcessLightedVolume VPVector3D  ld,
float  al
 

Definition at line 651 of file vpvolume.cpp.

References VPVector3D::vpDotProduct(), vpGetSobelGradient(), VPVector3D::vpNormalize(), VPPoint3D::x, VPImage::xDimension, VPPoint3D::y, VPImage::yDimension, and VPPoint3D::z.

void VPVolume::vpReadIFile const char *  n,
char *  p
 

Definition at line 249 of file vpvolume.cpp.

References NULL, VPImage::xDimension, and VPImage::yDimension.

Referenced by VPVolume().

void VPVolume::vpReadRawFile const char *  n  ) 
 

Definition at line 183 of file vpvolume.cpp.

References NULL, VPImage::xDimension, and VPImage::yDimension.

Referenced by VPVolume().

void VPVolume::vpReadVolFile const char *  n  ) 
 

Definition at line 330 of file vpvolume.cpp.

References C_UNSIGNED_BYTE, C_UNSIGNED_SHORT, C_VR_MAGIC_NUMBER, C_VR_MAGIC_NUMBER_OLD, NULL, SEEK_SET, vpSwapBytes(), xyz::x, VPImage::xDimension, xyz::y, VPImage::yDimension, and xyz::z.

Referenced by VPVolume().

void VPVolume::vpRender  ) 
 

Definition at line 935 of file vpvolume.cpp.

References DEFAULTVIS, MIPVIS, MONOCOLORVIS, MONOGRAYVIS, MULTIMODALVIS, SLICEFRONT, SLICESIDE, SLICETOP, vpAllocateColorImage(), vpAllocateGrayImage(), vpDisplayColor(), vpDisplayGray(), VPSlice::vpFrontSliceRender(), VPSlice::vpLineFrontSliceRender(), VPSlice::vpLineSideSliceRender(), VPSlice::vpLineTopSliceRender(), VPRayCasting::vpRenderLivroInnerStructures(), VPRayCasting::vpRenderLivroMonoColor(), VPRayCasting::vpRenderLivroMonoColorInnerStructures(), VPRayCasting::vpRenderLivroMonoGray(), VPRayCasting::vpRenderLivroMultiInnerStructures(), VPRayCasting::vpRenderLivroMultiModal(), VPRayCasting::vpRenderMIP(), VPRayCasting::vpRenderNoLightMonoGray(), vpSetSliceFrontCamera(), vpSetSliceSideCamera(), vpSetSliceTopCamera(), VPSlice::vpSideInnerStructRender(), VPSlice::vpSideSliceRender(), VPSlice::vpTopInnerStructRender(), and VPSlice::vpTopSliceRender().

void VPVolume::vpRotate  ) 
 

Definition at line 1421 of file vpvolume.cpp.

void VPVolume::vpScale VPPoint3D  s  ) 
 

Definition at line 1431 of file vpvolume.cpp.

void VPVolume::vpSetActiveCamera VPCamera c  ) 
 

Definition at line 1549 of file vpvolume.cpp.

void VPVolume::vpSetCameraLocationForInnerStructure VPPoint3D  c  ) 
 

Definition at line 2119 of file vpvolume.cpp.

void VPVolume::vpSetColorTable VPColor  c[]  ) 
 

Definition at line 1803 of file vpvolume.cpp.

References VPTable::vpSetColorTable().

void VPVolume::vpSetControlPoints int  cp[],
VPColor  c[],
int  n
 

Definition at line 1847 of file vpvolume.cpp.

References VPTable::vpSetControlPoints().

void VPVolume::vpSetControlPoints int  cp[],
int  n
 

Definition at line 1825 of file vpvolume.cpp.

References VPTable::vpSetControlPoints().

void VPVolume::vpSetFrontSlice int  v  ) 
 

Definition at line 1524 of file vpvolume.cpp.

void VPVolume::vpSetOpacityComputation int  oc  ) 
 

Definition at line 1758 of file vpvolume.cpp.

void VPVolume::vpSetOpacityTable float  t[]  ) 
 

Definition at line 1781 of file vpvolume.cpp.

References VPTable::vpSetOpacityTable().

void VPVolume::vpSetRayCastingAmbientLight float  a  ) 
 

Definition at line 1626 of file vpvolume.cpp.

References VPRayCasting::vpSetAmbientLight().

void VPVolume::vpSetRayCastingDiffuseLight float  d  ) 
 

Definition at line 1648 of file vpvolume.cpp.

References VPRayCasting::vpSetDiffuseLight().

void VPVolume::vpSetRayCastingSampleStep float  s  ) 
 

Definition at line 1604 of file vpvolume.cpp.

References VPRayCasting::vpSetSampleStep().

void VPVolume::vpSetRayCastingSBand VPPoint3D  sb,
int  vt
 

Definition at line 1560 of file vpvolume.cpp.

References VPRayCasting::vpSetEndSBand().

void VPVolume::vpSetRayCastingShadingMethod int  sm  ) 
 

Definition at line 1714 of file vpvolume.cpp.

References VPRayCasting::vpSetShadingMethod().

void VPVolume::vpSetRayCastingSpecular bool  s  ) 
 

Definition at line 1692 of file vpvolume.cpp.

References VPRayCasting::vpSetSpecular().

void VPVolume::vpSetRayCastingSpecularExponent int  s  ) 
 

Definition at line 1670 of file vpvolume.cpp.

References VPRayCasting::vpSetSpecularExponent().

void VPVolume::vpSetRayCastingTBand VPPoint3D  tb,
int  vt
 

Definition at line 1582 of file vpvolume.cpp.

References VPRayCasting::vpSetEndTBand().

void VPVolume::vpSetRayCastingTypeOfCuttingTool int  t  ) 
 

Definition at line 1736 of file vpvolume.cpp.

References VPRayCasting::vpSetTypeOfCuttingTool().

void VPVolume::vpSetSideSlice int  v  ) 
 

Definition at line 1499 of file vpvolume.cpp.

void VPVolume::vpSetSliceFrontCamera  ) 
 

Definition at line 1141 of file vpvolume.cpp.

References VPImage::vpGetXDimension(), and vpGetZDimension().

Referenced by vpRender().

void VPVolume::vpSetSliceSideCamera  ) 
 

Definition at line 1188 of file vpvolume.cpp.

References VPImage::vpGetXDimension(), and vpGetZDimension().

Referenced by vpRender().

void VPVolume::vpSetSliceTopCamera  ) 
 

Definition at line 1101 of file vpvolume.cpp.

References VPImage::vpGetXDimension(), VPImage::vpGetYDimension(), and vpGetZDimension().

Referenced by vpRender().

void VPVolume::vpSetTopSlice int  v  ) 
 

Definition at line 1474 of file vpvolume.cpp.

void VPVolume::vpSetVisualizationType int  vp  ) 
 

Definition at line 1452 of file vpvolume.cpp.

GLvoid VPVolume::vpSwapBytes GLint *  intPtr,
int  sizeBytes
 

Definition at line 2023 of file vpvolume.cpp.

Referenced by vpReadVolFile().

void VPVolume::vpTranslate VPPoint3D  t  ) 
 

Definition at line 1441 of file vpvolume.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Sep 6 10:00:20 2005 for VPAT by  doxygen 1.4.4