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
123 vtkSetClampMacro(MinRadius,
double,0.001,0.25);
124 vtkGetMacro(MinRadius,
double);
126 vtkGetMacro(MaxRadius,
double);
138 vtkGetMacro(AlongXAxis,
int);
141 vtkGetMacro(AlongYAxis,
int);
144 vtkGetMacro(AlongZAxis,
int);
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);
327 vtkSetClampMacro(BumpDistance,
double,0.000001,1);
328 vtkGetMacro(BumpDistance,
double);
371 vtkSetClampMacro(InteractionState,
int,Outside,TranslatingCenter);
380 vtkGetMacro(RepresentationState,
int);
390 double LastEventPosition[3];
419 double WidgetBounds[6];
473 void Rotate(
double X,
double Y,
double *p1,
double *p2,
double *vpn);
480 void Scale(
double *p1,
double *p2,
double X,
double Y);
map vtkPolyData to graphics primitives
void SetAxis(double a[3])
static vtkImplicitCylinderRepresentation * New()
Instantiate the class.
virtual void GetActors(vtkPropCollection *pc)
For some exporters and other other operations we must be able to collect all the actors or volumes.
defining the representation for a vtkImplicitCylinderWidget
void HighlightNormal(int highlight)
vtkProperty * SelectedCylinderProperty
void CreateDefaultProperties()
vtkTubeFilter * EdgesTuber
void TranslateOutline(double *p1, double *p2)
int ConstrainToWidgetBounds
vtkPolyDataMapper * OutlineMapper
vtkOutlineFilter * Outline
vtkPolyDataMapper * SphereMapper
virtual void WidgetInteraction(double newEventPos[2])
vtkPolyDataMapper * EdgesMapper
void SetDrawCylinder(int drawCyl)
Enable/disable the drawing of the cylinder.
void SetEdgeColor(double x[3])
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetRepresentationState(int)
Sets the visual appearance of the representation based on the state it is in.
vtkImplicitCylinderRepresentation()
vtkLineSource * LineSource2
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkProperty * CylinderProperty
void GetPolyData(vtkPolyData *pd)
Grab the polydata that defines the cylinder.
vtkPolyDataMapper * LineMapper2
virtual void BuildRepresentation()
void GetCenter(double xyz[3])
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
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void SetEdgeColor(double, double, double)
void ScaleRadius(double *p1, double *p2)
virtual void StartWidgetInteraction(double eventPos[2])
void TranslateCylinder(double *p1, double *p2)
vtkLineSource * LineSource
void GetAxis(double a[3])
void SetAlongXAxis(int)
Force the cylinder widget to be aligned with one of the x-y-z axes.
void UpdatePlacement(void)
Satisfies the superclass API.
create a polygonal sphere centered at the origin
vtkProperty * AxisProperty
virtual double * GetBounds()
Methods supporting the rendering process.
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)
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
~vtkImplicitCylinderRepresentation()
vtkConeSource * ConeSource
extract boundary, non-manifold, and/or sharp edges from polygonal data
vtkConeSource * ConeSource2
void SetRadius(double r)
Set/Get the radius of the cylinder.
void TranslateCenterOnAxis(double *p1, double *p2)
vtkProperty * SelectedOutlineProperty
vtkProperty * EdgesProperty
create a line defined by two end points
vtkPolyDataMapper * ConeMapper2
void SetAxis(double x, double y, double z)
Set/Get the axis of rotation for the cylinder.
abstract specification for Viewports
vtkPolyDataMapper * LineMapper
vtkCellPicker * CylPicker
vtkProperty * SelectedAxisProperty
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
map scalar values into colors via a lookup table
void Rotate(double X, double Y, double *p1, double *p2, double *vpn)
void PushCylinder(double distance)
Push the cylinder the distance specified along the view vector.
void BumpCylinder(int dir, double factor)
Translate the cylinder in the direction of the view vector by the specified BumpDistance.
implicit function for a bounding box
virtual void PlaceWidget(double bounds[6])
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)
void SetEdgeColor(vtkLookupTable *)
Set color to the edge.
virtual void RegisterPickers()
Register internal Pickers in the Picking Manager.
vtkProperty * OutlineProperty
vtkPolyDataMapper * ConeMapper
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
void SetCenter(double x[3])
virtual int ComputeInteractionState(int X, int Y, int modify=0)
Methods to interface with the vtkImplicitCylinderWidget.
ray-cast cell picker for all kinds of Prop3Ds
void HighlightCylinder(int highlight)
vtkPolyDataMapper * CylMapper
void GetCylinder(vtkCylinder *cyl)
Get the implicit function for the cylinder.
virtual void EndWidgetInteraction(double newEventPos[2])
Superclass for algorithms that produce only polydata as output.