FreeMat: vtkSliderRepresentation2D

FreeMat

- Main Page
- Related Pages

vtkSliderRepresentation2D

Section: Visualization Toolkit Widget Classes

# Usage

This class is used to represent and render a vtkSliderWidget. To use this class, you must at a minimum specify the end points of the slider. Optional instance variable can be used to modify the appearance of the widget.

To create an instance of class vtkSliderRepresentation2D, simply invoke its constructor as follows

      obj = vtkSliderRepresentation2D

# Methods

The class vtkSliderRepresentation2D has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, `obj` is an instance of the vtkSliderRepresentation2D class.

- `string = obj.GetClassName ()` - Standard methods for the class.
- `int = obj.IsA (string name)` - Standard methods for the class.
- `vtkSliderRepresentation2D = obj.NewInstance ()` - Standard methods for the class.
- `vtkSliderRepresentation2D = obj.SafeDownCast (vtkObject o)` - Standard methods for the class.
- `vtkCoordinate = obj.GetPoint1Coordinate ()` - Position the first end point of the slider. Note that this point is an instance of vtkCoordinate, meaning that Point 1 can be specified in a variety of coordinate systems, and can even be relative to another point. To set the point, you'll want to get the Point1Coordinate and then invoke the necessary methods to put it into the correct coordinate system and set the correct initial value.
- `vtkCoordinate = obj.GetPoint2Coordinate ()` - Position the second end point of the slider. Note that this point is an instance of vtkCoordinate, meaning that Point 1 can be specified in a variety of coordinate systems, and can even be relative to another point. To set the point, you'll want to get the Point2Coordinate and then invoke the necessary methods to put it into the correct coordinate system and set the correct initial value.
- `obj.SetTitleText (string )` - Specify the label text for this widget. If the value is not set, or set to the empty string "", then the label text is not displayed.
- `string = obj.GetTitleText ()` - Specify the label text for this widget. If the value is not set, or set to the empty string "", then the label text is not displayed.
- `vtkProperty2D = obj.GetSliderProperty ()` - Get the slider properties. The properties of the slider when selected and unselected can be manipulated.
- `vtkProperty2D = obj.GetTubeProperty ()` - Get the properties for the tube and end caps.
- `vtkProperty2D = obj.GetCapProperty ()` - Get the properties for the tube and end caps.
- `vtkProperty2D = obj.GetSelectedProperty ()` - Get the selection property. This property is used to modify the appearance of selected objects (e.g., the slider).
- `vtkTextProperty = obj.GetLabelProperty ()` - Set/Get the properties for the label and title text.
- `vtkTextProperty = obj.GetTitleProperty ()` - Set/Get the properties for the label and title text.
- `obj.PlaceWidget (double bounds[6])` - Methods to interface with the vtkSliderWidget. The PlaceWidget() method assumes that the parameter bounds[6] specifies the location in display space where the widget should be placed.
- `obj.BuildRepresentation ()` - Methods to interface with the vtkSliderWidget. The PlaceWidget() method assumes that the parameter bounds[6] specifies the location in display space where the widget should be placed.
- `obj.StartWidgetInteraction (double eventPos[2])` - Methods to interface with the vtkSliderWidget. The PlaceWidget() method assumes that the parameter bounds[6] specifies the location in display space where the widget should be placed.
- `obj.WidgetInteraction (double newEventPos[2])` - Methods to interface with the vtkSliderWidget. The PlaceWidget() method assumes that the parameter bounds[6] specifies the location in display space where the widget should be placed.
- `obj.Highlight (int )` - Methods to interface with the vtkSliderWidget. The PlaceWidget() method assumes that the parameter bounds[6] specifies the location in display space where the widget should be placed.
- `obj.GetActors2D (vtkPropCollection )`
- `obj.ReleaseGraphicsResources (vtkWindow )`
- `int = obj.RenderOverlay (vtkViewport )`
- `int = obj.RenderOpaqueGeometry (vtkViewport )`