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);
165 vtkGetMacro(Resolution,
int);
206 vtkSetVector6Macro(WidgetBounds,
double);
207 vtkGetVector6Macro(WidgetBounds,
double);
221 vtkBooleanMacro(ConstrainToWidgetBounds,
vtkTypeBool);
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]);
298 int ComputeInteractionState(
int X,
int Y,
int modify=0) override;
299 void PlaceWidget(
double bounds[6]) override;
300 void BuildRepresentation() override;
301 void StartWidgetInteraction(
double eventPos[2]) override;
302 void WidgetInteraction(
double newEventPos[2]) override;
303 void EndWidgetInteraction(
double newEventPos[2]) override;
310 double *GetBounds() override;
312 void ReleaseGraphicsResources(
vtkWindow*) override;
314 int RenderTranslucentPolygonalGeometry(
vtkViewport*) override;
315 int HasTranslucentPolygonalGeometry() 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);
387 double LastEventPosition[3];
412 void HighlightOutline(
int highlight);
416 double WidgetBounds[6];
424 void HighlightCylinder(
int highlight);
437 void HighlightNormal(
int highlight);
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();
vtkPolyDataMapper * ConeMapper
vtkConeSource * ConeSource2
represents an object (geometry & properties) in a rendered scene
int ConstrainToWidgetBounds
vtkPolyDataMapper * OutlineMapper
vtkOutlineFilter * Outline
abstract specification for Viewports
represent surface properties of a geometric object
vtkTypeBool OutsideBounds
vtkProperty * CylinderProperty
defining the representation for a vtkImplicitCylinderWidget
map scalar values into colors via a lookup table
vtkPolyDataMapper * LineMapper
vtkLineSource * LineSource2
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkCellPicker * CylPicker
vtkConeSource * ConeSource
vtkProperty * OutlineProperty
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.
vtkPolyDataMapper * LineMapper2
vtkProperty * SelectedAxisProperty
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
vtkProperty * SelectedOutlineProperty
vtkLineSource * LineSource
vtkPolyDataMapper * CylMapper
vtkProperty * EdgesProperty
#define VTK_SIZEHINT(...)
create a line defined by two end points
map vtkPolyData to graphics primitives
vtkPolyDataMapper * SphereMapper
ray-cast cell picker for all kinds of Prop3Ds
vtkPolyDataMapper * EdgesMapper
vtkTubeFilter * EdgesTuber
vtkProperty * SelectedCylinderProperty
vtkTypeBool OutlineTranslation
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
vtkPolyDataMapper * ConeMapper2
#define VTK_MAX_CYL_RESOLUTION
vtkProperty * AxisProperty