41 #ifndef vtkShadowMapBakerPass_h
42 #define vtkShadowMapBakerPass_h
44 #include "vtkRenderingOpenGL2Module.h"
105 vtkGetMacro(Resolution,
unsigned int);
217 unsigned int Resolution;
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.
std::vector< vtkSmartPointer< vtkTextureObject > > * GetShadowMaps()
INTERNAL USE ONLY Internally used by vtkShadowMapBakerPass and vtkShadowMapPass.
vtkShadowMapBakerPass()
Default constructor.
void ReleaseGraphicsResources(vtkWindow *w)
Release graphics resources and ask components to release their own resources.
virtual void SetOpaqueSequence(vtkRenderPass *opaqueSequence)
std::vector< vtkSmartPointer< vtkCamera > > * GetLightCameras()
INTERNAL USE ONLY.
void CheckSupport(vtkOpenGLRenderWindow *w)
Check if shadow mapping is supported by the current OpenGL context.
std::vector< vtkSmartPointer< vtkCamera > > * LightCameras
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.
vtkRenderPass * OpaqueSequence
virtual void Render(const vtkRenderState *s)
Perform rendering according to a render state s.
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.
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 ~vtkShadowMapBakerPass()
Destructor.
bool GetNeedUpdate()
INTERNAL USE ONLY.
std::vector< vtkSmartPointer< vtkTextureObject > > * ShadowMaps
virtual void SetCompositeZPass(vtkRenderPass *compositeZPass)
abstracts an OpenGL texture object.
record modification and/or execution time
window superclass for vtkRenderWindow
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.