30 #ifndef vtkImplicitConeRepresentation_h
31 #define vtkImplicitConeRepresentation_h
34 #include "vtkInteractionWidgetsModule.h"
38 VTK_ABI_NAMESPACE_BEGIN
52 #define VTK_MAX_CONE_RESOLUTION 2048
80 void SetOrigin(
double x,
double y,
double z);
81 void SetOrigin(
double x[3]);
83 void GetOrigin(
double xyz[3]);
91 void SetAxis(
double x,
double y,
double z);
92 void SetAxis(
double a[3]);
94 void GetAxis(
double a[3]);
101 void SetAngle(
double r);
114 void SetAlongXAxis(
bool);
115 vtkGetMacro(AlongXAxis,
bool);
116 vtkBooleanMacro(AlongXAxis,
bool);
117 void SetAlongYAxis(
bool);
118 vtkGetMacro(AlongYAxis,
bool);
119 vtkBooleanMacro(AlongYAxis,
bool);
120 void SetAlongZAxis(
bool);
121 vtkGetMacro(AlongZAxis,
bool);
122 vtkBooleanMacro(AlongZAxis,
bool);
132 void SetDrawCone(
bool draw);
133 vtkGetMacro(DrawCone,
bool);
134 vtkBooleanMacro(DrawCone,
bool);
146 vtkGetMacro(Resolution,
int);
156 vtkSetMacro(Tubing,
bool);
157 vtkGetMacro(Tubing,
bool);
158 vtkBooleanMacro(Tubing,
bool);
166 vtkSetMacro(ScaleEnabled,
bool);
167 vtkGetMacro(ScaleEnabled,
bool);
168 vtkBooleanMacro(ScaleEnabled,
bool);
181 void UpdatePlacement();
188 vtkGetObjectMacro(SelectedAxisProperty, vtkProperty);
196 vtkGetObjectMacro(ConeProperty, vtkProperty);
197 vtkGetObjectMacro(SelectedConeProperty, vtkProperty);
205 vtkGetObjectMacro(EdgesProperty, vtkProperty);
214 void SetInteractionColor(
double,
double,
double);
216 void SetHandleColor(
double,
double,
double);
218 void SetForegroundColor(
double,
double,
double);
253 vtkSetClampMacro(BumpDistance,
double, 0.000001, 1);
254 vtkGetMacro(BumpDistance,
double);
264 void BumpCone(
int dir,
double factor);
272 void PushCone(
double distance);
283 vtkSetClampMacro(InteractionState, InteractionStateType, InteractionStateType::Outside,
284 InteractionStateType::TranslatingOrigin);
291 virtual void SetRepresentationState(InteractionStateType);
292 vtkGetMacro(RepresentationState, InteractionStateType);
300 void GetCone(
vtkCone* cone)
const;
315 double BumpDistance = 0.01;
318 bool AlongXAxis =
false;
319 bool AlongYAxis =
false;
320 bool AlongZAxis =
false;
323 int Resolution = 128;
325 bool ScaleEnabled =
true;
330 bool DrawCone =
true;
371 void HighlightCone(
bool highlight);
372 void HighlightOriginHandle(
bool highlight);
373 void HighlightAxis(
bool highlight);
394 VTK_ABI_NAMESPACE_END
vtkNew< vtkActor > EdgesActor
vtkNew< vtkConeSource > AxisArrowSource
implicit function for a cone
vtkNew< vtkPolyData > ConePD
represents an object (geometry & properties) in a rendered scene
vtkNew< vtkSphereSource > OriginHandleSource
vtkNew< vtkActor > OriginHandleActor
abstract specification for Viewports
represent surface properties of a geometric object
vtkNew< vtkPolyDataMapper > AxisArrowMapper
vtkNew< vtkLineSource > AxisLineSource
vtkNew< vtkCellPicker > ConePicker
vtkNew< vtkProperty > ConeProperty
void SetInteractionColor(double c[3])
Set the color of all the widgets handles (edges, axis, selected cone) and their color during interact...
vtkNew< vtkActor > AxisArrowActor
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkNew< vtkTubeFilter > EdgesTuber
vtkNew< vtkProperty > SelectedAxisProperty
window superclass for vtkRenderWindow
create a polygonal sphere centered at the origin
vtkNew< vtkPolyDataMapper > EdgesMapper
filter that generates tubes around lines
a simple class to control print indentation
topologically and geometrically regular array of data
vtkNew< vtkProperty > SelectedOriginHandleProperty
vtkNew< vtkProperty > OriginHandleProperty
void SetHandleColor(double c[3])
Set the color of all the widgets handles (edges, axis, selected cone) and their color during interact...
vtkNew< vtkPolyDataMapper > ConePDMapper
vtkNew< vtkActor > AxisLineActor
vtkNew< vtkBox > BoundingBox
#define VTK_SIZEHINT(...)
vtkNew< vtkProperty > EdgesProperty
vtkNew< vtkActor > ConePDActor
vtkNew< vtkProperty > SelectedConeProperty
create a line defined by two end points
map vtkPolyData to graphics primitives
vtkNew< vtkPolyDataMapper > AxisLineMapper
void SetForegroundColor(double c[3])
Set the color of all the widgets handles (edges, axis, selected cone) and their color during interact...
ray-cast cell picker for all kinds of Prop3Ds
vtkNew< vtkProperty > AxisProperty
vtkVector3d LastEventPosition
vtkNew< vtkPolyData > EdgesPD
defining the representation for a vtkImplicitConeWidget
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
implicit function for a bounding box
vtkNew< vtkPolyDataMapper > OriginHandleMapper
#define VTK_MAX_CONE_RESOLUTION
vtkNew< vtkCellPicker > Picker