43 #ifndef vtkShadowMapBakerPass_h
44 #define vtkShadowMapBakerPass_h
46 #include "vtkRenderingOpenGLModule.h"
119 vtkGetMacro(Resolution,
unsigned int);
134 vtkGetMacro(PolygonOffsetFactor,
float);
151 vtkGetMacro(PolygonOffsetUnits,
float);
a virtual camera for 3D rendering
internal class which encapsulates OpenGL frame buffer object.
a simple class to control print indentation
a virtual light for 3D rendering
Perform part of the rendering of a vtkRenderer.
Context in which a vtkRenderPass will render.
Implement a builder of shadow map pass.
vtkShadowMapBakerPass()
Default constructor.
vtkShadowMapBakerPassTextures * GetShadowMaps()
INTERNAL USE ONLY Internally used by vtkShadowMapBakerPass and vtkShadowMapPass.
void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
void CheckSupport(vtkOpenGLRenderWindow *w)
Check if shadow mapping is supported by the current OpenGL context.
void BoxNearFar(double *bb, double *pt, double *dir, double &mNear, double &mFar)
Compute the min/max of the projection of a box in a given direction.
bool LightCreatesShadow(vtkLight *l)
INTERNAL USE ONLY.
virtual void Render(const vtkRenderState *s)
Perform rendering according to a render state s.
vtkRenderPass * CompositeZPass
static vtkInformationIntegerKey * RECEIVER()
vtkShadowMapBakerPassLightCameras * GetLightCameras()
INTERNAL USE ONLY.
void PointNearFar(double *v, double *pt, double *dir, double &mNear, double &mFar, bool initialized)
Helper method to compute the mNearest point in a given direction.
vtkTimeStamp LastRenderTime
vtkFrameBufferObject * FrameBufferObject
Graphics resources.
static vtkInformationIntegerKey * OCCLUDER()
If this key exists on the PropertyKeys of a prop, the prop is viewed as a light occluder (ie it casts...
bool GetHasShadows()
INTERNAL USE ONLY.
void BuildCameraLight(vtkLight *light, double *boundingBox, vtkCamera *lcamera)
Build a camera from spot light parameters.
static vtkShadowMapBakerPass * New()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetOpaquePass(vtkRenderPass *opaquePass)
virtual ~vtkShadowMapBakerPass()
Destructor.
vtkRenderPass * OpaquePass
bool GetNeedUpdate()
INTERNAL USE ONLY.
vtkShadowMapBakerPassTextures * ShadowMaps
float PolygonOffsetFactor
virtual void SetCompositeZPass(vtkRenderPass *compositeZPass)
vtkShadowMapBakerPassLightCameras * LightCameras
record modification and/or execution time
window superclass for vtkRenderWindow
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.