Go to the documentation of this file.
42 #ifndef vtkImplicitCylinderRepresentation_h
43 #define vtkImplicitCylinderRepresentation_h
45 #include "vtkInteractionWidgetsModule.h"
66 #define VTK_MAX_CYL_RESOLUTION 2048
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);
168 vtkGetMacro(Resolution,
int);
209 vtkSetVector6Macro(WidgetBounds,
double);
210 vtkGetVector6Macro(WidgetBounds,
double);
254 void UpdatePlacement(
void);
293 void SetEdgeColor(
double,
double,
double);
294 void SetEdgeColor(
double x[3]);
301 int ComputeInteractionState(
int X,
int Y,
int modify=0) override;
302 void PlaceWidget(
double bounds[6]) override;
303 void BuildRepresentation() override;
304 void StartWidgetInteraction(
double eventPos[2]) override;
305 void WidgetInteraction(
double newEventPos[2]) override;
306 void EndWidgetInteraction(
double newEventPos[2]) override;
313 double *GetBounds() 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);
380 vtkGetMacro(RepresentationState,
int);
395 double LastEventPosition[3];
424 double WidgetBounds[6];
475 void Rotate(
double X,
double Y,
double *p1,
double *p2,
double *vpn);
482 void Scale(
double *p1,
double *p2,
double X,
double Y);
map vtkPolyData to graphics primitives
static vtkImplicitCylinderRepresentation * New()
Instantiate the class.
defining the representation for a vtkImplicitCylinderWidget
void HighlightNormal(int highlight)
vtkProperty * SelectedCylinderProperty
void CreateDefaultProperties()
vtkTubeFilter * EdgesTuber
void TranslateOutline(double *p1, double *p2)
int ConstrainToWidgetBounds
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataMapper * OutlineMapper
vtkOutlineFilter * Outline
vtkPolyDataMapper * SphereMapper
vtkPolyDataMapper * EdgesMapper
virtual void SetRepresentationState(int)
Sets the visual appearance of the representation based on the state it is in.
vtkImplicitCylinderRepresentation()
vtkLineSource * LineSource2
vtkProperty * CylinderProperty
vtkPolyDataMapper * LineMapper2
void HighlightOutline(int highlight)
implicit function for a cylinder
window superclass for vtkRenderWindow
void Scale(double *p1, double *p2, double X, double Y)
void SetCenter(double x, double y, double z)
Get the center of the cylinder.
filter that generates tubes around lines
void ScaleRadius(double *p1, double *p2)
void TranslateCylinder(double *p1, double *p2)
#define VTK_SIZEHINT(...)
vtkTypeBool OutlineTranslation
vtkLineSource * LineSource
vtkTypeBool OutsideBounds
create a polygonal sphere centered at the origin
vtkProperty * AxisProperty
represents an object (geometry & properties) in a rendered scene
topologically and geometrically regular array of data
a simple class to control print indentation
void AdjustRadius(double X, double Y, double *p1, double *p2)
vtkConeSource * ConeSource
extract boundary, non-manifold, and/or sharp edges from polygonal data
vtkConeSource * ConeSource2
void TranslateCenterOnAxis(double *p1, double *p2)
vtkProperty * SelectedOutlineProperty
~vtkImplicitCylinderRepresentation() override
vtkProperty * EdgesProperty
create a line defined by two end points
vtkPolyDataMapper * ConeMapper2
abstract specification for Viewports
vtkPolyDataMapper * LineMapper
vtkCellPicker * CylPicker
vtkProperty * SelectedAxisProperty
map scalar values into colors via a lookup table
void Rotate(double X, double Y, double *p1, double *p2, double *vpn)
implicit function for a bounding box
concrete dataset represents vertices, lines, polygons, and triangle strips
create wireframe outline for arbitrary data set
represent surface properties of a geometric object
#define VTK_MAX_CYL_RESOLUTION
void TranslateCenter(double *p1, double *p2)
vtkProperty * OutlineProperty
vtkPolyDataMapper * ConeMapper
void SetCenter(double x[3])
ray-cast cell picker for all kinds of Prop3Ds
void HighlightCylinder(int highlight)
vtkPolyDataMapper * CylMapper
void RegisterPickers() override
Register internal Pickers in the Picking Manager.
Superclass for algorithms that produce only polydata as output.