SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | Friends | List of all members
Transform Class Reference

#include <Transform.h>

Inheritance diagram for Transform:
Persistent

Public Member Functions

double get_imat_val (int i, int j) const
 
void set_imat_val (int i, int j, double val)
 
 Transform ()
 
 Transform (const Transform &)
 
Transformoperator= (const Transform &)
 
 ~Transform ()
 
 Transform (const Point &, const Vector &, const Vector &, const Vector &)
 
double get_mat_val (int i, int j) const
 
void set_mat_val (int i, int j, double val)
 
void load_basis (const Point &, const Vector &, const Vector &, const Vector &)
 
void load_frame (const Vector &, const Vector &, const Vector &)
 
void change_basis (Transform &)
 
void post_trans (const Transform &)
 
void pre_trans (const Transform &)
 
void print ()
 
void printi ()
 
void pre_permute (int xmap, int ymap, int zmap)
 
void post_permute (int xmap, int ymap, int zmap)
 
void pre_scale (const Vector &)
 
void post_scale (const Vector &)
 
void load_identity ()
 
bool rotate (const Vector &from, const Vector &to)
 
void pre_translate (const Vector &)
 
void post_translate (const Vector &)
 
void compute_imat () const
 
Vector project (const Vector &p) const
 
Point project (const Point &p) const
 
Point unproject (const Point &p) const
 
void unproject (const Point &p, Point &res) const
 
void unproject_inplace (Point &p) const
 
Vector unproject (const Vector &p) const
 
void unproject (const Vector &v, Vector &res) const
 
void unproject_inplace (Vector &v) const
 
void project (const Point &p, Point &res) const
 
void project_inplace (Point &p) const
 
void project (const Vector &p, Vector &res) const
 
void project_inplace (Vector &p) const
 
Vector project_normal (const Vector &) const
 
void project_normal (const Vector &, Vector &res) const
 
void project_normal_inplace (Vector &) const
 
void pre_shear (const Vector &, const Plane &)
 
void post_shear (const Vector &, const Plane &)
 
void pre_rotate (double, const Vector &axis)
 
void post_rotate (double, const Vector &axis)
 
void get (double *) const
 
void get_trans (double *) const
 
void set (double *)
 
void set_trans (double *)
 
void perspective (const Point &eyep, const Point &lookat, const Vector &up, double fov, double znear, double zfar, int xres, int yres)
 
void invert ()
 
bool inv_valid ()
 
void set_inv_valid (bool iv)
 
virtual void io (Piostream &stream)
 
- Public Member Functions inherited from Persistent
virtual ~Persistent ()
 

Static Public Attributes

static PersistentTypeID type_id
 Persistent I/O. More...
 

Friends

SCISHARE friend void Pio (Piostream &, Transform *&)
 

Additional Inherited Members

- Static Public Member Functions inherited from Persistent
static PersistentTypeIDPtr find_derived (const std::string &classname, const std::string &basename)
 
static bool is_base_of (const std::string &parent, const std::string &type)
 
static void add_class (const std::string &type, const std::string &parent, Persistent *(*maker)(), Persistent *(*bc_maker1)()=0, Persistent *(*bc_maker2)()=0)
 
static void add_mesh_class (const std::string &type, Persistent *(*maker)(), Persistent *(*bc_maker1)()=0, Persistent *(*bc_maker2)()=0)
 
static void add_field_class (const std::string &type, Persistent *(*maker)(), Persistent *(*bc_maker1)()=0, Persistent *(*bc_maker2)()=0)
 

Constructor & Destructor Documentation

Transform ( )
Transform ( const Transform copy)
~Transform ( )
Transform ( const Point p,
const Vector i,
const Vector j,
const Vector k 
)

Member Function Documentation

void change_basis ( Transform T)
void compute_imat ( ) const
void get ( double *  gmat) const
double get_imat_val ( int  i,
int  j 
) const
inline
double get_mat_val ( int  i,
int  j 
) const
inline
void get_trans ( double *  gmat) const
bool inv_valid ( )
inline
void invert ( )
void io ( Piostream stream)
virtual

Reimplemented from Persistent.

void load_basis ( const Point p,
const Vector x,
const Vector y,
const Vector z 
)
void load_frame ( const Vector x,
const Vector y,
const Vector z 
)
void load_identity ( )
Transform & operator= ( const Transform copy)
void perspective ( const Point eyep,
const Point lookat,
const Vector up,
double  fov,
double  znear,
double  zfar,
int  xres,
int  yres 
)
void post_permute ( int  xmap,
int  ymap,
int  zmap 
)
void post_rotate ( double  ,
const Vector axis 
)
void post_scale ( const Vector v)
void post_shear ( const Vector s,
const Plane p 
)
void post_trans ( const Transform T)
void post_translate ( const Vector v)
void pre_permute ( int  xmap,
int  ymap,
int  zmap 
)
void pre_rotate ( double  ,
const Vector axis 
)
void pre_scale ( const Vector v)
void pre_shear ( const Vector s,
const Plane p 
)
void pre_trans ( const Transform T)
void pre_translate ( const Vector v)
void print ( )
void printi ( )
Vector project ( const Vector p) const
Point project ( const Point p) const
void project ( const Point p,
Point res 
) const
void project ( const Vector p,
Vector res 
) const
void project_inplace ( Point p) const
void project_inplace ( Vector p) const
Vector project_normal ( const Vector p) const
void project_normal ( const Vector p,
Vector res 
) const
void project_normal_inplace ( Vector p) const
bool rotate ( const Vector from,
const Vector to 
)
void set ( double *  pmat)
void set_imat_val ( int  i,
int  j,
double  val 
)
inline
void set_inv_valid ( bool  iv)
inline
void set_mat_val ( int  i,
int  j,
double  val 
)
inline
void set_trans ( double *  pmat)
Point unproject ( const Point p) const
void unproject ( const Point p,
Point res 
) const
Vector unproject ( const Vector p) const
void unproject ( const Vector v,
Vector res 
) const
void unproject_inplace ( Point p) const
void unproject_inplace ( Vector v) const

Friends And Related Function Documentation

SCISHARE friend void Pio ( Piostream ,
Transform *&   
)
friend

Member Data Documentation

PersistentTypeID type_id
static

Persistent I/O.


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