VTK
|
create a ellipsoidal-shaped button More...
#include <vtkEllipticalButtonSource.h>
Public Types | |
typedef vtkButtonSource | Superclass |
![]() | |
typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | IsA (const char *type) |
vtkEllipticalButtonSource * | NewInstance () const |
virtual void | SetWidth (double) |
virtual double | GetWidth () |
virtual void | SetHeight (double) |
virtual double | GetHeight () |
virtual void | SetDepth (double) |
virtual double | GetDepth () |
virtual void | SetCircumferentialResolution (int) |
virtual int | GetCircumferentialResolution () |
virtual void | SetTextureResolution (int) |
virtual int | GetTextureResolution () |
virtual void | SetShoulderResolution (int) |
virtual int | GetShoulderResolution () |
virtual void | SetRadialRatio (double) |
virtual double | GetRadialRatio () |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) |
vtkButtonSource * | NewInstance () const |
virtual void | SetCenter (double, double, double) |
virtual void | SetCenter (double[3]) |
virtual double * | GetCenter () |
virtual void | GetCenter (double data[3]) |
virtual void | SetTextureStyle (int) |
virtual int | GetTextureStyle () |
void | SetTextureStyleToFitImage () |
void | SetTextureStyleToProportional () |
virtual void | SetTextureDimensions (int, int) |
void | SetTextureDimensions (int[2]) |
virtual int * | GetTextureDimensions () |
virtual void | GetTextureDimensions (int &, int &) |
virtual void | GetTextureDimensions (int[2]) |
virtual void | SetShoulderTextureCoordinate (double, double) |
void | SetShoulderTextureCoordinate (double[2]) |
virtual double * | GetShoulderTextureCoordinate () |
virtual void | GetShoulderTextureCoordinate (double &, double &) |
virtual void | GetShoulderTextureCoordinate (double[2]) |
virtual void | SetTwoSided (int) |
virtual int | GetTwoSided () |
virtual void | TwoSidedOn () |
virtual void | TwoSidedOff () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkEllipticalButtonSource * | SafeDownCast (vtkObjectBase *o) |
static vtkEllipticalButtonSource * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkButtonSource * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkEllipticalButtonSource () | |
~vtkEllipticalButtonSource () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
![]() | |
vtkButtonSource () | |
~vtkButtonSource () | |
Protected Attributes | |
double | Width |
double | Height |
double | Depth |
int | CircumferentialResolution |
int | TextureResolution |
int | ShoulderResolution |
double | RadialRatio |
![]() | |
double | Center [3] |
double | ShoulderTextureCoordinate [2] |
int | TextureStyle |
int | TextureDimensions [2] |
int | TwoSided |
create a ellipsoidal-shaped button
vtkEllipticalButtonSource creates a ellipsoidal shaped button with texture coordinates suitable for application of a texture map. This provides a way to make nice looking 3D buttons. The buttons are represented as vtkPolyData that includes texture coordinates and normals. The button lies in the x-y plane.
To use this class you must define the major and minor axes lengths of an ellipsoid (expressed as width (x), height (y) and depth (z)). The button has a rectangular mesh region in the center with texture coordinates that range smoothly from (0,1). (This flat region is called the texture region.) The outer, curved portion of the button (called the shoulder) has texture coordinates set to a user specified value (by default (0,0). (This results in coloring the button curve the same color as the (s,t) location of the texture map.) The resolution in the radial direction, the texture region, and the shoulder region must also be set. The button can be moved by specifying an origin.
Definition at line 52 of file vtkEllipticalButtonSource.h.
Definition at line 56 of file vtkEllipticalButtonSource.h.
|
protected |
|
inlineprotected |
Definition at line 114 of file vtkEllipticalButtonSource.h.
void vtkEllipticalButtonSource::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
static |
|
virtual |
Reimplemented from vtkButtonSource.
|
static |
|
protectedvirtual |
Reimplemented from vtkButtonSource.
vtkEllipticalButtonSource* vtkEllipticalButtonSource::NewInstance | ( | ) | const |
|
static |
Construct a circular button with depth 10% of its height.
|
virtual |
Set/Get the width of the button (the x-ellipsoid axis length * 2).
|
virtual |
Set/Get the width of the button (the x-ellipsoid axis length * 2).
|
virtual |
Set/Get the height of the button (the y-ellipsoid axis length * 2).
|
virtual |
Set/Get the height of the button (the y-ellipsoid axis length * 2).
|
virtual |
Set/Get the depth of the button (the z-eliipsoid axis length).
|
virtual |
Set/Get the depth of the button (the z-eliipsoid axis length).
|
virtual |
Specify the resolution of the button in the circumferential direction.
|
virtual |
Specify the resolution of the button in the circumferential direction.
|
virtual |
Specify the resolution of the texture in the radial direction in the texture region.
|
virtual |
Specify the resolution of the texture in the radial direction in the texture region.
|
virtual |
Specify the resolution of the texture in the radial direction in the shoulder region.
|
virtual |
Specify the resolution of the texture in the radial direction in the shoulder region.
|
virtual |
Set/Get the radial ratio. This is the measure of the radius of the outer ellipsoid to the inner ellipsoid of the button. The outer ellipsoid is the boundary of the button defined by the height and width. The inner ellipsoid circumscribes the texture region. Larger RadialRatio's cause the button to be more rounded (and the texture region to be smaller); smaller ratios produce sharply curved shoulders with a larger texture region.
|
virtual |
Set/Get the radial ratio. This is the measure of the radius of the outer ellipsoid to the inner ellipsoid of the button. The outer ellipsoid is the boundary of the button defined by the height and width. The inner ellipsoid circumscribes the texture region. Larger RadialRatio's cause the button to be more rounded (and the texture region to be smaller); smaller ratios produce sharply curved shoulders with a larger texture region.
|
protected |
|
protected |
Definition at line 118 of file vtkEllipticalButtonSource.h.
|
protected |
Definition at line 119 of file vtkEllipticalButtonSource.h.
|
protected |
Definition at line 120 of file vtkEllipticalButtonSource.h.
|
protected |
Definition at line 121 of file vtkEllipticalButtonSource.h.
|
protected |
Definition at line 122 of file vtkEllipticalButtonSource.h.
|
protected |
Definition at line 123 of file vtkEllipticalButtonSource.h.
|
protected |
Definition at line 124 of file vtkEllipticalButtonSource.h.