38 #include "vtkRenderingCoreModule.h" 99 void RemoveAllLights();
117 void CreateLight(
void);
168 vtkBooleanMacro(AutomaticLightCreation,
vtkTypeBool);
176 virtual vtkTypeBool UpdateLightsGeometryToFollowCamera(
void);
234 int CaptureGL2PSSpecialProp(
vtkProp*);
262 vtkSetVector3Macro(Ambient,
double);
263 vtkGetVectorMacro(Ambient,
double, 3);
271 vtkSetMacro(AllocatedRenderTime,
double);
272 virtual double GetAllocatedRenderTime();
281 virtual double GetTimeFactor();
289 virtual void Render();
329 int VisibleActorCount();
334 int VisibleVolumeCount();
340 void ComputeVisiblePropBounds(
double bounds[6]);
351 virtual
void ResetCameraClippingRange();
360 virtual
void ResetCameraClippingRange(
double bounds[6]);
361 virtual
void ResetCameraClippingRange(
362 double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax);
371 vtkSetClampMacro(NearClippingPlaneTolerance,
double, 0, 0.99);
372 vtkGetMacro(NearClippingPlaneTolerance,
double);
381 vtkSetClampMacro(ClippingRangeExpansion,
double, 0, 0.99);
382 vtkGetMacro(ClippingRangeExpansion,
double);
391 virtual
void ResetCamera();
402 virtual
void ResetCamera(
double bounds[6]);
407 virtual
void ResetCamera(
408 double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax);
456 virtual void SetLayer(
int layer);
457 vtkGetMacro(Layer,
int);
502 void ViewToWorld(
double& wx,
double& wy,
double& wz)
override;
508 void WorldToView(
double& wx,
double& wy,
double& wz)
override;
514 void WorldToPose(
double& wx,
double& wy,
double& wz)
override;
515 void PoseToWorld(
double& wx,
double& wy,
double& wz)
override;
516 void ViewToPose(
double& wx,
double& wy,
double& wz)
override;
517 void PoseToView(
double& wx,
double& wy,
double& wz)
override;
524 double GetZ(
int x,
int y);
535 vtkGetMacro(LastRenderTimeInSeconds,
double);
545 vtkGetMacro(NumberOfPropsRendered,
int);
558 return this->
PickProp(selectionX, selectionY, selectionX, selectionY);
561 double selectionX1,
double selectionY1,
double selectionX2,
double selectionY2)
override;
577 double GetTiledAspectRatio();
607 vtkSetMacro(UseDepthPeelingForVolumes,
bool);
608 vtkGetMacro(UseDepthPeelingForVolumes,
bool);
609 vtkBooleanMacro(UseDepthPeelingForVolumes,
bool);
621 vtkSetClampMacro(OcclusionRatio,
double, 0.0, 0.5);
622 vtkGetMacro(OcclusionRatio,
double);
631 vtkSetMacro(MaximumNumberOfPeels,
int);
632 vtkGetMacro(MaximumNumberOfPeels,
int);
641 vtkGetMacro(LastRenderingUsedDepthPeeling,
vtkTypeBool);
670 virtual void SetLeftBackgroundTexture(
vtkTexture*);
672 virtual void SetBackgroundTexture(
vtkTexture*);
673 vtkGetObjectMacro(BackgroundTexture,
vtkTexture);
681 virtual void SetRightBackgroundTexture(
vtkTexture*);
682 vtkGetObjectMacro(RightBackgroundTexture,
vtkTexture);
690 vtkSetMacro(TexturedBackground,
bool);
691 vtkGetMacro(TexturedBackground,
bool);
692 vtkBooleanMacro(TexturedBackground,
bool);
696 virtual void ReleaseGraphicsResources(
vtkWindow*);
702 vtkSetMacro(UseFXAA,
bool);
703 vtkGetMacro(UseFXAA,
bool);
704 vtkBooleanMacro(UseFXAA,
bool);
732 vtkBooleanMacro(UseHiddenLineRemoval,
vtkTypeBool);
755 vtkSetMacro(UseImageBasedLighting,
bool);
756 vtkGetMacro(UseImageBasedLighting,
bool);
757 vtkBooleanMacro(UseImageBasedLighting,
bool);
772 vtkGetObjectMacro(EnvironmentTexture,
vtkTexture);
773 virtual void SetEnvironmentTexture(
vtkTexture* texture,
bool isSRGB =
false);
780 vtkGetVector3Macro(EnvironmentUp,
double);
781 vtkSetVector3Macro(EnvironmentUp,
double);
788 vtkGetVector3Macro(EnvironmentRight,
double);
789 vtkSetVector3Macro(EnvironmentRight,
double);
799 virtual void ExpandBounds(
double bounds[6],
vtkMatrix4x4* matrix);
818 int BackingStoreSize[2];
849 double ComputedVisiblePropBounds[6];
900 virtual int UpdateTranslucentPolygonalGeometry();
907 virtual int UpdateOpaquePolygonalGeometry();
913 virtual int UpdateCamera(
void);
933 vtkCamera* GetActiveCameraAndResetIfCreated();
1005 this->Selector = selector;
1029 double EnvironmentUp[3];
1030 double EnvironmentRight[3];
abstract superclass for all actors, volumes and annotations
vtkInformation * Information
double ClippingRangeExpansion
Specify enlargement of bounds when resetting the camera clipping range.
vtkTypeBool UseShadows
If this flag is on and the rendering engine supports it render shadows Initial value is off...
represents a volume (data & properties) in a rendered scene
virtual void WorldToPose(double &, double &, double &)
These methods map from one coordinate system to another.
represents an object (geometry & properties) in a rendered scene
vtkAssemblyPath * PickProp(double selectionX, double selectionY) override
Return the prop (via a vtkAssemblyPath) that has the highest z value at the given x...
represent and manipulate 4x4 transformation matrices
vtkTypeUInt32 vtkMTimeType
abstract specification for Viewports
virtual void ClearLights(void)
Internal method temporarily removes lights before reloading them into graphics pipeline.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRenderWindow * RenderWindow
double OcclusionRatio
In case of use of depth peeling technique for rendering translucent material, define the threshold un...
virtual int UpdateLights(void)
Ask all lights to load themselves into rendering pipeline.
a actor that draws 2D data
record modification and/or execution time
vtkTexture * EnvironmentTexture
bool UseDepthPeelingForVolumes
This flag is on and the GPU supports it, depth-peel volumes along with the translucent geometry...
vtkTypeBool PreserveDepthBuffer
vtkTypeBool IsActiveCameraCreated()
This method returns 1 if the ActiveCamera has already been set or automatically created by the render...
abstract specification for renderers
double AllocatedRenderTime
an ordered list of lights
vtkRendererDelegate * Delegate
vtkTypeBool LightFollowCamera
vtkTypeBool TwoSidedLighting
double LastRenderTimeInSeconds
window superclass for vtkRenderWindow
vtkVolumeCollection * Volumes
vtkTypeBool Draw
When this flag is off, render commands are ignored.
vtkCullerCollection * Cullers
virtual vtkAssemblyPath * PickProp(double selectionX, double selectionY)=0
Return the Prop that has the highest z value at the given x, y position in the viewport.
abstract interface to OpenGL FBOs
void SetSelector(vtkHardwareSelector *selector)
Called by vtkHardwareSelector when it begins rendering for selection.
a list of nodes that form an assembly path
vtkTypeBool PreserveColorBuffer
unsigned char * BackingImage
a superclass for prop cullers
a simple class to control print indentation
virtual void StereoMidpoint()
Do anything necessary between rendering the left and right viewpoints in a stereo render...
a virtual camera for 3D rendering
vtkTypeBool AutomaticLightCreation
a virtual light for 3D rendering
bool UseFXAA
If this flag is on and the rendering engine supports it, FXAA will be used to antialias the scene...
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkTypeBool UseDepthPeeling
If this flag is on and the GPU supports it, depth peeling is used for rendering translucent materials...
vtkLightCollection * GetLights()
Return the collection of lights.
virtual void PoseToWorld(double &, double &, double &)
These methods map from one coordinate system to another.
vtkPropCollection * GL2PSSpecialPropCollection
Temporary collection used by vtkRenderWindow::CaptureGL2PSSpecialProps.
an ordered list of volumes
vtkFXAAOptions * FXAAOptions
Holds the FXAA configuration.
handles properties associated with a texture map
virtual void Modified()
Update the modification time for this object.
vtkLightCollection * Lights
virtual void ViewToPose(double &, double &, double &)
These methods map from one coordinate system to another.
#define VTK_SIZEHINT(...)
vtkActorCollection * Actors
an ordered list of actors
vtkHardwareSelector * Selector
virtual void PoseToView(double &, double &, double &)
These methods map from one coordinate system to another.
double NearClippingPlaneTolerance
Specifies the minimum distance of the near clipping plane as a percentage of the far clipping plane d...
an ordered list of Cullers
create a window for renderers to draw into
vtkTypeBool UseHiddenLineRemoval
When this flag is on and the rendering engine supports it, wireframe polydata will be rendered using ...
virtual void ViewToWorld()
Convert view point coordinates to world coordinates.
virtual void DeviceRender()
Create an image.
Render the props of a vtkRenderer.
bool UseImageBasedLighting
vtkTexture * BackgroundTexture
vtkTypeBool LastRenderingUsedDepthPeeling
Tells if the last call to DeviceRenderTranslucentPolygonalGeometry() actually used depth peeling...
vtkCullerCollection * GetCullers()
Return the collection of cullers.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Perform part of the rendering of a vtkRenderer.
virtual vtkWindow * GetVTKWindow()=0
Return the vtkWindow that owns this vtkViewport.
int NumberOfPropsRendered
virtual void WorldToView()
Convert world point coordinates to view coordinates.
virtual void Clear()
Clear the image to the background color.
vtkTexture * RightBackgroundTexture
Configuration for FXAA implementations.
int MaximumNumberOfPeels
In case of depth peeling, define the maximum number of peeling layers.
vtkTypeBool Erase
When this flag is off, the renderer will not erase the background or the Zbuffer. ...