VTK
|
create a rectangular button More...
#include <vtkRectangularButtonSource.h>
Public Types | |
typedef vtkButtonSource | Superclass |
![]() | |
typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | IsA (const char *type) |
vtkRectangularButtonSource * | 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 | SetBoxRatio (double) |
virtual double | GetBoxRatio () |
virtual void | SetTextureRatio (double) |
virtual double | GetTextureRatio () |
virtual void | SetTextureHeightRatio (double) |
virtual double | GetTextureHeightRatio () |
![]() | |
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 vtkRectangularButtonSource * | SafeDownCast (vtkObjectBase *o) |
static vtkRectangularButtonSource * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkButtonSource * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkRectangularButtonSource () | |
~vtkRectangularButtonSource () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
![]() | |
vtkButtonSource () | |
~vtkButtonSource () | |
Protected Attributes | |
double | Width |
double | Height |
double | Depth |
double | BoxRatio |
double | TextureRatio |
double | TextureHeightRatio |
![]() | |
double | Center [3] |
double | ShoulderTextureCoordinate [2] |
int | TextureStyle |
int | TextureDimensions [2] |
int | TwoSided |
create a rectangular button
vtkRectangularButtonSource creates a rectangular 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 its width, height and length. These measurements are all taken with respect to the shoulder of the button. The shoulder is defined as follows. Imagine a box sitting on the floor. The distance from the floor to the top of the box is the depth; the other directions are the length (x-direction) and height (y-direction). In this particular widget the box can have a smaller bottom than top. The ratio in size between bottom and top is called the box ratio (by default=1.0). The ratio of the texture region to the shoulder region is the texture ratio. And finally the texture region may be out of plane compared to the shoulder. The texture height ratio controls this.
Definition at line 56 of file vtkRectangularButtonSource.h.
Definition at line 60 of file vtkRectangularButtonSource.h.
|
protected |
|
inlineprotected |
Definition at line 113 of file vtkRectangularButtonSource.h.
void vtkRectangularButtonSource::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
static |
|
virtual |
Reimplemented from vtkButtonSource.
|
static |
|
protectedvirtual |
Reimplemented from vtkButtonSource.
vtkRectangularButtonSource* vtkRectangularButtonSource::NewInstance | ( | ) | const |
|
static |
Construct a circular button with depth 10% of its height.
|
virtual |
Set/Get the width of the button.
|
virtual |
Set/Get the width of the button.
|
virtual |
Set/Get the height of the button.
|
virtual |
Set/Get the height of the button.
|
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 |
Set/Get the ratio of the bottom of the button with the shoulder region. Numbers greater than one produce buttons with a wider bottom than shoulder; ratios less than one produce buttons that have a wider shoulder than bottom.
|
virtual |
Set/Get the ratio of the bottom of the button with the shoulder region. Numbers greater than one produce buttons with a wider bottom than shoulder; ratios less than one produce buttons that have a wider shoulder than bottom.
|
virtual |
Set/Get the ratio of the texture region to the shoulder region. This number must be 0<=tr<=1. If the texture style is to fit the image, then satisfying the texture ratio may only be possible in one of the two directions (length or width) depending on the dimensions of the texture.
|
virtual |
Set/Get the ratio of the texture region to the shoulder region. This number must be 0<=tr<=1. If the texture style is to fit the image, then satisfying the texture ratio may only be possible in one of the two directions (length or width) depending on the dimensions of the texture.
|
virtual |
Set/Get the ratio of the height of the texture region to the shoulder height. Values greater than 1.0 yield convex buttons with the texture region raised above the shoulder. Values less than 1.0 yield concave buttons with the texture region below the shoulder.
|
virtual |
Set/Get the ratio of the height of the texture region to the shoulder height. Values greater than 1.0 yield convex buttons with the texture region raised above the shoulder. Values less than 1.0 yield concave buttons with the texture region below the shoulder.
|
protected |
|
protected |
Definition at line 117 of file vtkRectangularButtonSource.h.
|
protected |
Definition at line 118 of file vtkRectangularButtonSource.h.
|
protected |
Definition at line 119 of file vtkRectangularButtonSource.h.
|
protected |
Definition at line 121 of file vtkRectangularButtonSource.h.
|
protected |
Definition at line 122 of file vtkRectangularButtonSource.h.
|
protected |
Definition at line 123 of file vtkRectangularButtonSource.h.