33   return (Type)(val * 
M_PI / 180.0);
 
 
   37   return (Type)(val * 180.0 / 
M_PI);
 
 
   43   typedef SoSeparator inherited;
 
   45   SO_NODE_ABSTRACT_HEADER(
SoCast);
 
 
#define __MEVIS_IV_END_NAMESPACE
 
#define __MEVIS_IV_BEGIN_NAMESPACE
 
__MEVIS_IV_BEGIN_NAMESPACE Type SbDeg2Rad(Type val)
 
#define SOSHADOW_CLASS_SPEC
Define a class export specifier needed to make the class exportable in dll's.
 
const SbVec3f & getNearestPlaneVertex()
 
virtual const SbVec3f & getFarestSceneVertex()
 
virtual SbMatrix getCastMatrix(SoState *)
 
SoCast()
Protected constructor.
 
SbBox3f getPlaneBoundingBox(SoState *state, SbBool usePlaneElement=FALSE)
Calculates bounding box for plane.
 
const SbVec3f & getFarestPlaneVertex()
 
SoSFEnum lightMode
... . Default is (FREE).
 
SoSFBool castRender
Enable/disable cast render pass. Default is (TRUE).
 
SbGroundplane _curPlaneArea
 
SoSFVec4f lightPos
Direction of the light. Default is (-1,-1,-1,0).
 
void GLRenderBelowPath(SoGLRenderAction *action) override
 
SoSFFloat planeAngle
Rotation around camera side vector. Default is (SbDeg2Rad<float>(40)).
 
virtual void commonGLRender(SoGLRenderAction *action)
 
void GLRenderInPath(SoGLRenderAction *action) override
 
virtual void castRenderSetup(SoGLRenderAction *)
 
SbPlane cameraToPlane(SoState *state, SbGroundplane &area)
Calculates plane and plane vertices from viewing state.
 
virtual void normalRenderSetup(SoGLRenderAction *)
 
SoSFPlane projectionPlane
Plane to cast projected model onto. Default is ((0, 1, 0), 0).
 
void getBoundingBox(SoGetBoundingBoxAction *action) override
 
SoSFColor castColor
Color used to draw projected shapes. Default is (0.65, 0.62, 0.51).
 
const SbVec4f & getCurLightDir() const
Return the vector used to setup the current cast matrix.
 
void adjustCurrentCameraClippingPlanes(SoState *state)
 
void animatePlaneAngleAssignment(float newAngle)
 
LightMode
How to cast regarding the light.
 
@ FREE
The field "lightPos" is used.
 
@ PLANE
Light is perpendicular to the shadow plane.
 
Target mlrange_cast(Source arg)
Generic version of checked ML casts.