RE_Light Class Reference

#include <RE_Light.h>

List of all members.

Public Member Functions

 RE_Light (const char *n=0)
const char * getName () const
void setName (const char *name)
virtual void setForDelete ()
const UT_Vector3getPosition () const
UT_Vector3getPosition ()
void setPosition (const UT_Vector3 &p)
const UT_Vector3getDirection () const
UT_Vector3getDirection ()
void setDirection (const UT_Vector3 &d)
const UT_Vector3getColor () const
UT_Vector3getColor ()
void setColor (const UT_Vector3 &c)
const UT_Matrix4getTransform () const
UT_Matrix4getTransform ()
void setTransform (const UT_Matrix4 &m)
int isCone () const
int isInfinite () const
int isAmbient () const
int isMapProjector () const
int isDiffuse () const
int isSpecular () const
bool isShadowed () const
void setInfinite (int onoff)
void setAmbient (int onoff)
void setCone (int onoff)
void setDiffuse (int onoff)
void setSpecular (int onoff)
void setShadowed (bool onoff)
void setConeAttrib (float a=45, float d=10, float r=1)
float getConeAngle () const
float getConeDelta () const
float getConeRoll () const
void setZoom (float z)
float getZoom () const
void setFocalLength (float focal)
float getFocalLength () const
void setAperture (float aper)
float getAperture () const
void setOrthoWidth (float width)
float getOrthoWidth () const
void setNearDistance (float znear)
float getNearDistance () const
void setFarDistance (float zfar)
float getFarDistance () const
int getConeTextureIndex () const
void setConeTextureIndex (int idx)
int needConeGLReset () const
void needConeGLReset (int f)
void setMaskPic (UT_Raster *r)
void setShadowPic (UT_Raster *r)
void setDiffusePic (UT_Raster *r)
void setReflectPic (UT_Raster *r)
void setProjectMap (const char *name, const char *relativeTo)
void setProjectMapClamp (int onoff)
UT_RastergetMaskPic () const
UT_RastergetShadowPic () const
UT_RastergetDiffusePic () const
UT_RastergetReflectPic () const
RE_Texture2DMapgetProjectMap ()
virtual void getVexShader (UT_String &str, float now)
virtual void getVexShadow (UT_String &str, float now)
virtual void getAttenuation (float atten[3]) const

Protected Member Functions

virtual ~RE_Light ()

Protected Attributes

int myGLConeTextureIndex
unsigned myGLConeNeedReset:1
unsigned myContribDiff:1
unsigned myContribSpec:1
unsigned myUseShadows:1
RE_LightFlag flag
UT_String myName
UT_Vector3 pos
UT_Vector3 dir
UT_Vector3 clr
UT_Matrix4 xform
float coneAngle
float coneDelta
float coneRoll
float myAperture
float myFocalLength
float myOrthoWidth
float myNearDist
float myFarDist
float zoom
UT_RastermaskPic
UT_RastershadowPic
UT_RasterdiffusePic
UT_RasterreflectPic
RE_Texture2DMapprojectMap
UT_String myProjectMapName
UT_String myProjectMapRelativeTo


Detailed Description

Definition at line 61 of file RE_Light.h.


Constructor & Destructor Documentation

RE_Light::RE_Light ( const char *  n = 0  ) 

virtual RE_Light::~RE_Light (  )  [protected, virtual]


Member Function Documentation

float RE_Light::getAperture (  )  const [inline]

Definition at line 125 of file RE_Light.h.

virtual void RE_Light::getAttenuation ( float  atten[3]  )  const [virtual]

UT_Vector3& RE_Light::getColor ( void   )  [inline]

Definition at line 79 of file RE_Light.h.

const UT_Vector3& RE_Light::getColor ( void   )  const [inline]

Definition at line 78 of file RE_Light.h.

float RE_Light::getConeAngle (  )  const [inline]

Definition at line 112 of file RE_Light.h.

float RE_Light::getConeDelta (  )  const [inline]

Definition at line 113 of file RE_Light.h.

float RE_Light::getConeRoll (  )  const [inline]

Definition at line 114 of file RE_Light.h.

int RE_Light::getConeTextureIndex (  )  const [inline]

Definition at line 141 of file RE_Light.h.

UT_Raster* RE_Light::getDiffusePic (  )  const [inline]

Definition at line 165 of file RE_Light.h.

UT_Vector3& RE_Light::getDirection (  )  [inline]

Definition at line 75 of file RE_Light.h.

const UT_Vector3& RE_Light::getDirection (  )  const [inline]

Definition at line 74 of file RE_Light.h.

float RE_Light::getFarDistance (  )  const [inline]

Definition at line 134 of file RE_Light.h.

float RE_Light::getFocalLength (  )  const [inline]

Definition at line 122 of file RE_Light.h.

UT_Raster* RE_Light::getMaskPic (  )  const [inline]

Definition at line 163 of file RE_Light.h.

const char* RE_Light::getName ( void   )  const [inline]

Definition at line 65 of file RE_Light.h.

float RE_Light::getNearDistance (  )  const [inline]

Definition at line 131 of file RE_Light.h.

float RE_Light::getOrthoWidth (  )  const [inline]

Definition at line 128 of file RE_Light.h.

UT_Vector3& RE_Light::getPosition (  )  [inline]

Definition at line 71 of file RE_Light.h.

const UT_Vector3& RE_Light::getPosition (  )  const [inline]

Definition at line 70 of file RE_Light.h.

RE_Texture2DMap* RE_Light::getProjectMap (  ) 

UT_Raster* RE_Light::getReflectPic (  )  const [inline]

Definition at line 166 of file RE_Light.h.

UT_Raster* RE_Light::getShadowPic (  )  const [inline]

Definition at line 164 of file RE_Light.h.

UT_Matrix4& RE_Light::getTransform ( void   )  [inline]

Definition at line 83 of file RE_Light.h.

const UT_Matrix4& RE_Light::getTransform ( void   )  const [inline]

Definition at line 82 of file RE_Light.h.

virtual void RE_Light::getVexShader ( UT_String str,
float  now 
) [virtual]

virtual void RE_Light::getVexShadow ( UT_String str,
float  now 
) [virtual]

float RE_Light::getZoom (  )  const [inline]

Definition at line 119 of file RE_Light.h.

int RE_Light::isAmbient (  )  const [inline]

Definition at line 88 of file RE_Light.h.

int RE_Light::isCone (  )  const [inline]

Definition at line 86 of file RE_Light.h.

int RE_Light::isDiffuse (  )  const [inline]

Definition at line 91 of file RE_Light.h.

int RE_Light::isInfinite (  )  const [inline]

Definition at line 87 of file RE_Light.h.

int RE_Light::isMapProjector (  )  const [inline]

Definition at line 89 of file RE_Light.h.

bool RE_Light::isShadowed (  )  const [inline]

Definition at line 94 of file RE_Light.h.

int RE_Light::isSpecular (  )  const [inline]

Definition at line 92 of file RE_Light.h.

void RE_Light::needConeGLReset ( int  f  )  [inline]

Definition at line 147 of file RE_Light.h.

int RE_Light::needConeGLReset (  )  const [inline]

Definition at line 146 of file RE_Light.h.

void RE_Light::setAmbient ( int  onoff  )  [inline]

Definition at line 100 of file RE_Light.h.

void RE_Light::setAperture ( float  aper  )  [inline]

Definition at line 124 of file RE_Light.h.

void RE_Light::setColor ( const UT_Vector3 c  )  [inline]

Definition at line 80 of file RE_Light.h.

void RE_Light::setCone ( int  onoff  )  [inline]

Definition at line 101 of file RE_Light.h.

void RE_Light::setConeAttrib ( float  a = 45,
float  d = 10,
float  r = 1 
) [inline]

Definition at line 105 of file RE_Light.h.

void RE_Light::setConeTextureIndex ( int  idx  )  [inline]

Definition at line 143 of file RE_Light.h.

void RE_Light::setDiffuse ( int  onoff  )  [inline]

Definition at line 102 of file RE_Light.h.

void RE_Light::setDiffusePic ( UT_Raster r  )  [inline]

Definition at line 157 of file RE_Light.h.

void RE_Light::setDirection ( const UT_Vector3 d  )  [inline]

Definition at line 76 of file RE_Light.h.

void RE_Light::setFarDistance ( float  zfar  )  [inline]

Definition at line 133 of file RE_Light.h.

void RE_Light::setFocalLength ( float  focal  )  [inline]

Definition at line 121 of file RE_Light.h.

virtual void RE_Light::setForDelete (  )  [virtual]

void RE_Light::setInfinite ( int  onoff  )  [inline]

Definition at line 99 of file RE_Light.h.

void RE_Light::setMaskPic ( UT_Raster r  )  [inline]

Definition at line 155 of file RE_Light.h.

void RE_Light::setName ( const char *  name  )  [inline]

Definition at line 66 of file RE_Light.h.

void RE_Light::setNearDistance ( float  znear  )  [inline]

Definition at line 130 of file RE_Light.h.

void RE_Light::setOrthoWidth ( float  width  )  [inline]

Definition at line 127 of file RE_Light.h.

void RE_Light::setPosition ( const UT_Vector3 p  )  [inline]

Definition at line 72 of file RE_Light.h.

void RE_Light::setProjectMap ( const char *  name,
const char *  relativeTo 
)

void RE_Light::setProjectMapClamp ( int  onoff  ) 

void RE_Light::setReflectPic ( UT_Raster r  )  [inline]

Definition at line 158 of file RE_Light.h.

void RE_Light::setShadowed ( bool  onoff  )  [inline]

Definition at line 104 of file RE_Light.h.

void RE_Light::setShadowPic ( UT_Raster r  )  [inline]

Definition at line 156 of file RE_Light.h.

void RE_Light::setSpecular ( int  onoff  )  [inline]

Definition at line 103 of file RE_Light.h.

void RE_Light::setTransform ( const UT_Matrix4 m  )  [inline]

Definition at line 84 of file RE_Light.h.

void RE_Light::setZoom ( float  z  )  [inline]

Definition at line 118 of file RE_Light.h.


Member Data Documentation

Definition at line 197 of file RE_Light.h.

float RE_Light::coneAngle [protected]

Definition at line 199 of file RE_Light.h.

float RE_Light::coneDelta [protected]

Definition at line 199 of file RE_Light.h.

float RE_Light::coneRoll [protected]

Definition at line 199 of file RE_Light.h.

Definition at line 207 of file RE_Light.h.

Definition at line 196 of file RE_Light.h.

Definition at line 193 of file RE_Light.h.

Definition at line 205 of file RE_Light.h.

float RE_Light::myAperture [protected]

Definition at line 200 of file RE_Light.h.

unsigned RE_Light::myContribDiff [protected]

Definition at line 186 of file RE_Light.h.

unsigned RE_Light::myContribSpec [protected]

Definition at line 186 of file RE_Light.h.

float RE_Light::myFarDist [protected]

Definition at line 203 of file RE_Light.h.

float RE_Light::myFocalLength [protected]

Definition at line 200 of file RE_Light.h.

unsigned RE_Light::myGLConeNeedReset [protected]

Definition at line 186 of file RE_Light.h.

Definition at line 185 of file RE_Light.h.

Definition at line 194 of file RE_Light.h.

float RE_Light::myNearDist [protected]

Definition at line 202 of file RE_Light.h.

float RE_Light::myOrthoWidth [protected]

Definition at line 201 of file RE_Light.h.

Definition at line 211 of file RE_Light.h.

Definition at line 212 of file RE_Light.h.

unsigned RE_Light::myUseShadows [protected]

Definition at line 186 of file RE_Light.h.

Definition at line 195 of file RE_Light.h.

Definition at line 209 of file RE_Light.h.

Definition at line 208 of file RE_Light.h.

Definition at line 206 of file RE_Light.h.

Definition at line 198 of file RE_Light.h.

float RE_Light::zoom [protected]

Definition at line 204 of file RE_Light.h.


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

Generated on Fri May 25 00:10:36 2012 for HDK by  doxygen 1.5.9