#include <SoCast.h>
Definition at line 41 of file SoCast.h.
◆ LightMode
How to cast regarding the light.
Enumerator |
---|
FREE | The field "lightPos" is used.
|
PLANE | Light is perpendicular to the shadow plane.
|
CAMERA | Light comes from the current camera.
|
Definition at line 93 of file SoCast.h.
◆ SoCast()
◆ ~SoCast()
virtual SoCast::~SoCast |
( |
| ) |
|
|
protectedvirtual |
◆ adjustCurrentCameraClippingPlanes()
void SoCast::adjustCurrentCameraClippingPlanes |
( |
SoState * |
state | ) |
|
|
protected |
Adjust camera clipping planes to contain the entire scene including shadow projection plane.
◆ animatePlaneAngleAssignment()
void SoCast::animatePlaneAngleAssignment |
( |
float |
newAngle | ) |
|
◆ cameraToPlane()
SbPlane SoCast::cameraToPlane |
( |
SoState * |
state, |
|
|
SbGroundplane & |
area |
|
) |
| |
|
protected |
Calculates plane and plane vertices from viewing state.
◆ castRenderSetup()
virtual void SoCast::castRenderSetup |
( |
SoGLRenderAction * |
| ) |
|
|
protectedvirtual |
Called from GLRender() before rendering traversal of model in cast-mode starts. SoShadowRenderElement will be set by GLRender().
◆ commonGLRender()
virtual void SoCast::commonGLRender |
( |
SoGLRenderAction * |
action | ) |
|
|
virtual |
◆ getBoundingBox()
void SoCast::getBoundingBox |
( |
SoGetBoundingBoxAction * |
action | ) |
|
|
override |
◆ getCastMatrix()
virtual SbMatrix SoCast::getCastMatrix |
( |
SoState * |
| ) |
|
|
protectedvirtual |
Returns a matrix projecting model vertices on a plane. Method is used by castRenderSetup().
◆ getCurLightDir()
const SbVec4f& SoCast::getCurLightDir |
( |
| ) |
const |
|
inline |
Return the vector used to setup the current cast matrix.
This value depends on the current lightMode.
Definition at line 127 of file SoCast.h.
◆ getFarestPlaneVertex()
const SbVec3f& SoCast::getFarestPlaneVertex |
( |
| ) |
|
|
inline |
◆ getFarestSceneVertex()
virtual const SbVec3f& SoCast::getFarestSceneVertex |
( |
| ) |
|
|
inlinevirtual |
◆ getNearestPlaneVertex()
const SbVec3f& SoCast::getNearestPlaneVertex |
( |
| ) |
|
|
inline |
Used by viewers to extend clipping planes. Returns the nearest/farest plane vertex from the camera.
Definition at line 142 of file SoCast.h.
◆ getPlaneBoundingBox()
SbBox3f SoCast::getPlaneBoundingBox |
( |
SoState * |
state, |
|
|
SbBool |
usePlaneElement = FALSE |
|
) |
| |
|
protected |
Calculates bounding box for plane.
◆ GLRenderBelowPath()
void SoCast::GLRenderBelowPath |
( |
SoGLRenderAction * |
action | ) |
|
|
override |
◆ GLRenderInPath()
void SoCast::GLRenderInPath |
( |
SoGLRenderAction * |
action | ) |
|
|
override |
◆ initClass()
static void SoCast::initClass |
( |
| ) |
|
|
static |
◆ normalRenderSetup()
virtual void SoCast::normalRenderSetup |
( |
SoGLRenderAction * |
| ) |
|
|
inlineprotectedvirtual |
Called from GLRender() before normal rendering traversal of model starts. SoShadowRenderElement will be set by GLRender().
Definition at line 70 of file SoCast.h.
◆ _curlightPos
SbVec4f SoCast::_curlightPos |
|
protected |
◆ _curPlaneArea
◆ castColor
SoSFColor SoCast::castColor |
Color used to draw projected shapes. Default is (0.65, 0.62, 0.51).
Definition at line 118 of file SoCast.h.
◆ castRender
SoSFBool SoCast::castRender |
Enable/disable cast render pass. Default is (TRUE).
Definition at line 121 of file SoCast.h.
◆ lightMode
SoSFEnum SoCast::lightMode |
... . Default is (FREE).
Definition at line 103 of file SoCast.h.
◆ lightPos
SoSFVec4f SoCast::lightPos |
Direction of the light. Default is (-1,-1,-1,0).
Definition at line 100 of file SoCast.h.
◆ planeAngle
SoSFFloat SoCast::planeAngle |
Rotation around camera side vector. Default is (SbDeg2Rad<float>(40)).
Value is only used if field projectionPlane is ignored.
Definition at line 115 of file SoCast.h.
◆ projectionPlane
SoSFPlane SoCast::projectionPlane |
Plane to cast projected model onto. Default is ((0, 1, 0), 0).
If the field is set to be ignored, compute plane from camera.
Definition at line 109 of file SoCast.h.
The documentation for this class was generated from the following file:
- FMEwork/ReleaseMeVis/Sources/Inventor/SoShadow/Inventor/nodes/SoCast.h