42 #ifndef vtkImplicitCylinderRepresentation_h 43 #define vtkImplicitCylinderRepresentation_h 45 #include "vtkInteractionWidgetsModule.h" 66 #define VTK_MAX_CYL_RESOLUTION 2048 89 void SetCenter(
double x,
double y,
double z);
90 void SetCenter(
double x[3]);
92 void GetCenter(
double xyz[3]);
100 void SetAxis(
double x,
double y,
double z);
101 void SetAxis(
double a[3]);
103 void GetAxis(
double a[3]);
111 void SetRadius(
double r);
123 vtkSetClampMacro(MinRadius,
double,0.001,0.25);
124 vtkGetMacro(MinRadius,
double);
126 vtkGetMacro(MaxRadius,
double);
137 void SetAlongXAxis(
int);
138 vtkGetMacro(AlongXAxis,
int);
140 void SetAlongYAxis(
int);
141 vtkGetMacro(AlongYAxis,
int);
143 void SetAlongZAxis(
int);
144 vtkGetMacro(AlongZAxis,
int);
155 void SetDrawCylinder(
int drawCyl);
156 vtkGetMacro(DrawCylinder,
int);
168 vtkGetMacro(Resolution,
int);
178 vtkGetMacro(Tubing,
int);
188 vtkGetMacro(OutlineTranslation,
int);
198 vtkGetMacro(OutsideBounds,
int);
209 vtkSetVector6Macro(WidgetBounds,
double);
210 vtkGetVector6Macro(WidgetBounds,
double);
223 vtkGetMacro(ConstrainToWidgetBounds,
int);
232 vtkGetMacro(ScaleEnabled,
int);
254 void UpdatePlacement(
void);
261 vtkGetObjectMacro(SelectedAxisProperty,
vtkProperty);
270 vtkGetObjectMacro(SelectedCylinderProperty,
vtkProperty);
278 vtkGetObjectMacro(SelectedOutlineProperty,
vtkProperty);
293 void SetEdgeColor(
double,
double,
double);
294 void SetEdgeColor(
double x[3]);
302 void PlaceWidget(
double bounds[6]) VTK_OVERRIDE;
303 void BuildRepresentation() VTK_OVERRIDE;
304 void StartWidgetInteraction(
double eventPos[2]) VTK_OVERRIDE;
305 void WidgetInteraction(
double newEventPos[2]) VTK_OVERRIDE;
306 void EndWidgetInteraction(
double newEventPos[2]) VTK_OVERRIDE;
313 double *GetBounds() VTK_OVERRIDE;
315 void ReleaseGraphicsResources(
vtkWindow*) VTK_OVERRIDE;
316 int RenderOpaqueGeometry(
vtkViewport*) VTK_OVERRIDE;
317 int RenderTranslucentPolygonalGeometry(
vtkViewport*) VTK_OVERRIDE;
318 int HasTranslucentPolygonalGeometry() VTK_OVERRIDE;
327 vtkSetClampMacro(BumpDistance,
double,0.000001,1);
328 vtkGetMacro(BumpDistance,
double);
338 void BumpCylinder(
int dir,
double factor);
346 void PushCylinder(
double distance);
371 vtkSetClampMacro(InteractionState,
int,Outside,TranslatingCenter);
379 virtual void SetRepresentationState(
int);
380 vtkGetMacro(RepresentationState,
int);
387 int RepresentationState;
390 double LastEventPosition[3];
415 void HighlightOutline(
int highlight);
416 int OutlineTranslation;
419 double WidgetBounds[6];
420 int ConstrainToWidgetBounds;
427 void HighlightCylinder(
int highlight);
440 void HighlightNormal(
int highlight);
467 void RegisterPickers() VTK_OVERRIDE;
473 void Rotate(
double X,
double Y,
double *p1,
double *p2,
double *vpn);
474 void TranslateCylinder(
double *p1,
double *p2);
475 void TranslateOutline(
double *p1,
double *p2);
476 void TranslateCenter(
double *p1,
double *p2);
477 void TranslateCenterOnAxis(
double *p1,
double *p2);
478 void ScaleRadius(
double *p1,
double *p2);
479 void AdjustRadius(
double X,
double Y,
double *p1,
double *p2);
480 void Scale(
double *p1,
double *p2,
double X,
double Y);
492 void CreateDefaultProperties();
495 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