39 #ifndef vtkImplicitCylinderRepresentation_h 40 #define vtkImplicitCylinderRepresentation_h 42 #include "vtkInteractionWidgetsModule.h" 63 #define VTK_MAX_CYL_RESOLUTION 2048 86 void SetCenter(
double x,
double y,
double z);
87 void SetCenter(
double x[3]);
89 void GetCenter(
double xyz[3]);
97 void SetAxis(
double x,
double y,
double z);
98 void SetAxis(
double a[3]);
100 void GetAxis(
double a[3]);
108 void SetRadius(
double r);
120 vtkSetClampMacro(MinRadius,
double,0.001,0.25);
121 vtkGetMacro(MinRadius,
double);
123 vtkGetMacro(MaxRadius,
double);
134 void SetAlongXAxis(
int);
135 vtkGetMacro(AlongXAxis,
int);
137 void SetAlongYAxis(
int);
138 vtkGetMacro(AlongYAxis,
int);
140 void SetAlongZAxis(
int);
141 vtkGetMacro(AlongZAxis,
int);
152 void SetDrawCylinder(
int drawCyl);
153 vtkGetMacro(DrawCylinder,
int);
165 vtkGetMacro(Resolution,
int);
175 vtkGetMacro(Tubing,
int);
185 vtkGetMacro(OutlineTranslation,
int);
195 vtkGetMacro(OutsideBounds,
int);
206 vtkSetVector6Macro(WidgetBounds,
double);
207 vtkGetVector6Macro(WidgetBounds,
double);
220 vtkGetMacro(ConstrainToWidgetBounds,
int);
229 vtkGetMacro(ScaleEnabled,
int);
251 void UpdatePlacement(
void);
258 vtkGetObjectMacro(SelectedAxisProperty,
vtkProperty);
267 vtkGetObjectMacro(SelectedCylinderProperty,
vtkProperty);
275 vtkGetObjectMacro(SelectedOutlineProperty,
vtkProperty);
290 void SetEdgeColor(
double,
double,
double);
291 void SetEdgeColor(
double x[3]);
299 void PlaceWidget(
double bounds[6]) VTK_OVERRIDE;
300 void BuildRepresentation() VTK_OVERRIDE;
301 void StartWidgetInteraction(
double eventPos[2]) VTK_OVERRIDE;
302 void WidgetInteraction(
double newEventPos[2]) VTK_OVERRIDE;
303 void EndWidgetInteraction(
double newEventPos[2]) VTK_OVERRIDE;
310 double *GetBounds() VTK_OVERRIDE;
312 void ReleaseGraphicsResources(
vtkWindow*) VTK_OVERRIDE;
313 int RenderOpaqueGeometry(
vtkViewport*) VTK_OVERRIDE;
314 int RenderTranslucentPolygonalGeometry(
vtkViewport*) VTK_OVERRIDE;
315 int HasTranslucentPolygonalGeometry() VTK_OVERRIDE;
324 vtkSetClampMacro(BumpDistance,
double,0.000001,1);
325 vtkGetMacro(BumpDistance,
double);
335 void BumpCylinder(
int dir,
double factor);
343 void PushCylinder(
double distance);
368 vtkSetClampMacro(InteractionState,
int,Outside,TranslatingCenter);
376 virtual void SetRepresentationState(
int);
377 vtkGetMacro(RepresentationState,
int);
384 int RepresentationState;
387 double LastEventPosition[3];
412 void HighlightOutline(
int highlight);
413 int OutlineTranslation;
416 double WidgetBounds[6];
417 int ConstrainToWidgetBounds;
424 void HighlightCylinder(
int highlight);
437 void HighlightNormal(
int highlight);
464 void RegisterPickers() VTK_OVERRIDE;
470 void Rotate(
double X,
double Y,
double *p1,
double *p2,
double *vpn);
471 void TranslateCylinder(
double *p1,
double *p2);
472 void TranslateOutline(
double *p1,
double *p2);
473 void TranslateCenter(
double *p1,
double *p2);
474 void TranslateCenterOnAxis(
double *p1,
double *p2);
475 void ScaleRadius(
double *p1,
double *p2);
476 void AdjustRadius(
double X,
double Y,
double *p1,
double *p2);
477 void Scale(
double *p1,
double *p2,
double X,
double Y);
489 void CreateDefaultProperties();
492 void BuildCylinder();
represents an object (geometry & properties) in a rendered scene
abstract specification for Viewports
represent surface properties of a geometric object
defining the representation for a vtkImplicitCylinderWidget
map scalar values into colors via a lookup table
concrete dataset represents vertices, lines, polygons, and triangle strips
window superclass for vtkRenderWindow
create wireframe outline for arbitrary data set
create a polygonal sphere centered at the origin
Superclass for algorithms that produce only polydata as output.
filter that generates tubes around lines
a simple class to control print indentation
extract boundary, non-manifold, and/or sharp edges from polygonal data
topologically and geometrically regular array of data
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
create a line defined by two end points
map vtkPolyData to graphics primitives
ray-cast cell picker for all kinds of Prop3Ds
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
implicit function for a cylinder
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
#define VTK_MAX_CYL_RESOLUTION