28#ifndef vtkLightRepresentation_h
29#define vtkLightRepresentation_h
31#include "vtkInteractionWidgetsModule.h"
56 vtkSetMacro(Positional,
bool);
57 vtkGetMacro(Positional,
bool);
58 vtkBooleanMacro(Positional,
bool);
66 vtkGetVector3Macro(LightPosition,
double);
74 vtkGetVector3Macro(FocalPoint,
double);
83 vtkGetMacro(ConeAngle,
double);
116 vtkSetClampMacro(InteractionState,
int, Outside, ScalingConeAngle);
157 double LastScalingDistance2 = -1;
158 double LastEventPosition[3] = { 0, 0, 0 };
178 double LightPosition[3] = { 0, 0, 1 };
179 double FocalPoint[3] = { 0, 0, 0 };
180 double ConeAngle = 30;
181 bool Positional =
false;
represents an object (geometry & properties) in a rendered scene
implicit function for a bounding box
ray-cast cell picker for all kinds of Prop3Ds
a simple class to control print indentation
vtkNew< vtkBox > BoundingBox
virtual void ScaleConeAngle(double *pickPoint, double *lastPickPoint)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double * GetLightColor()
Set/Get the light color.
int ComputeInteractionState(int X, int Y, int modify=0) override
Method to satisfy superclasses' API.
vtkNew< vtkActor > SphereActor
vtkNew< vtkPolyDataMapper > ConeMapper
vtkNew< vtkPolyDataMapper > SphereMapper
void BuildRepresentation() override
Method to satisfy superclasses' API.
void SetConeAngle(double angle)
Set/Get the cone angle, in degrees, for the light.
void SetFocalPoint(double pos[3])
Set/Get the coordinates of the focal point of the light representation.
vtkNew< vtkCellPicker > LinePicker
vtkNew< vtkCellPicker > SpherePicker
vtkNew< vtkCellPicker > ConePicker
static vtkLightRepresentation * New()
void SetLightPosition(double pos[3])
Set/Get the coordinates of the position of the light representation.
void ReleaseGraphicsResources(vtkWindow *w) override
Methods required by vtkProp superclass.
vtkNew< vtkActor > LineActor
vtkNew< vtkConeSource > Cone
vtkNew< vtkActor > ConeActor
void SetLightColor(double *color)
Set/Get the light color.
virtual void SizeHandles()
double * GetBounds() override
Method to satisfy superclasses' API.
void WidgetInteraction(double eventPosition[2]) override
Method to satisfy superclasses' API.
vtkNew< vtkPolyDataMapper > LineMapper
void StartWidgetInteraction(double eventPosition[2]) override
Method to satisfy superclasses' API.
virtual void UpdateSources()
int RenderOpaqueGeometry(vtkViewport *viewport) override
Methods required by vtkProp superclass.
vtkCellPicker * LastPicker
vtkNew< vtkLineSource > Line
vtkNew< vtkProperty > Property
~vtkLightRepresentation() override
vtkNew< vtkSphereSource > Sphere
@ MovingPositionalFocalPoint
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Methods required by vtkProp superclass.
create a line defined by two end points
Allocate and hold a VTK object.
represent the position of a point in 3D space
map vtkPolyData to graphics primitives
represent surface properties of a geometric object
create a polygonal sphere centered at the origin
abstract specification for Viewports
window superclass for vtkRenderWindow
#define VTK_SIZEHINT(...)