VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkSpherePuzzle Class Reference

create a polygonal sphere centered at the origin More...

#include <vtkSpherePuzzle.h>

Inherits vtkPolyDataAlgorithm.

Public Types

typedef vtkPolyDataAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkSpherePuzzleNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void Reset ()
 
void MoveHorizontal (int section, int percentage, int rightFlag)
 
void MoveVertical (int section, int percentage, int rightFlag)
 
int SetPoint (double x, double y, double z)
 
void MovePoint (int percentage)
 
int * GetState ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkSpherePuzzleSafeDownCast (vtkObjectBase *o)
 
static vtkSpherePuzzleNew ()
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkSpherePuzzle ()
 
 ~vtkSpherePuzzle ()
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
void MarkVertical (int section)
 
void MarkHorizontal (int section)
 

Protected Attributes

int State [32]
 
int PieceMask [32]
 
vtkTransform * Transform
 
unsigned char Colors [96]
 
int Active
 
int VerticalFlag
 
int RightFlag
 
int Section
 

Detailed Description

create a polygonal sphere centered at the origin

vtkSpherePuzzle creates

Examples:
vtkSpherePuzzle (Examples)
Tests:
vtkSpherePuzzle (Tests)

Definition at line 37 of file vtkSpherePuzzle.h.

Member Typedef Documentation

typedef vtkPolyDataAlgorithm vtkSpherePuzzle::Superclass

Definition at line 40 of file vtkSpherePuzzle.h.

Constructor & Destructor Documentation

vtkSpherePuzzle::vtkSpherePuzzle ( )
protected
vtkSpherePuzzle::~vtkSpherePuzzle ( )
protected

Member Function Documentation

static int vtkSpherePuzzle::IsTypeOf ( const char *  type)
static
virtual int vtkSpherePuzzle::IsA ( const char *  type)
virtual
static vtkSpherePuzzle* vtkSpherePuzzle::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkSpherePuzzle::NewInstanceInternal ( ) const
protectedvirtual
vtkSpherePuzzle* vtkSpherePuzzle::NewInstance ( ) const
void vtkSpherePuzzle::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
static vtkSpherePuzzle* vtkSpherePuzzle::New ( )
static
void vtkSpherePuzzle::Reset ( )

Reset the state of this puzzle back to its original state.

void vtkSpherePuzzle::MoveHorizontal ( int  section,
int  percentage,
int  rightFlag 
)

Move the top/bottom half one segment either direction.

void vtkSpherePuzzle::MoveVertical ( int  section,
int  percentage,
int  rightFlag 
)

Rotate vertical half of sphere along one of the longitude lines.

int vtkSpherePuzzle::SetPoint ( double  x,
double  y,
double  z 
)

SetPoint will be called as the mouse moves over the screen. The output will change to indicate the pending move. SetPoint returns zero if move is not activated by point. Otherwise it encodes the move into a unique integer so that the caller can determine if the move state has changed. This will answer the question, "Should I render."

void vtkSpherePuzzle::MovePoint ( int  percentage)

Move actually implements the pending move. When percentage is 100, the pending move becomes inactive, and SetPoint will have to be called again to setup another move.

int* vtkSpherePuzzle::GetState ( )
inline

For drawing state as arrows.

Definition at line 67 of file vtkSpherePuzzle.h.

int vtkSpherePuzzle::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protected
void vtkSpherePuzzle::MarkVertical ( int  section)
protected
void vtkSpherePuzzle::MarkHorizontal ( int  section)
protected

Member Data Documentation

int vtkSpherePuzzle::State[32]
protected

Definition at line 77 of file vtkSpherePuzzle.h.

int vtkSpherePuzzle::PieceMask[32]
protected

Definition at line 80 of file vtkSpherePuzzle.h.

vtkTransform* vtkSpherePuzzle::Transform
protected

Definition at line 81 of file vtkSpherePuzzle.h.

unsigned char vtkSpherePuzzle::Colors[96]
protected

Definition at line 84 of file vtkSpherePuzzle.h.

int vtkSpherePuzzle::Active
protected

Definition at line 87 of file vtkSpherePuzzle.h.

int vtkSpherePuzzle::VerticalFlag
protected

Definition at line 88 of file vtkSpherePuzzle.h.

int vtkSpherePuzzle::RightFlag
protected

Definition at line 89 of file vtkSpherePuzzle.h.

int vtkSpherePuzzle::Section
protected

Definition at line 90 of file vtkSpherePuzzle.h.


The documentation for this class was generated from the following file: