My Project
Public Member Functions | Public Attributes | List of all members
StaticRayGroup Class Reference

#include <rayGroup.h>

Inheritance diagram for StaticRayGroup:
RayGroup RayShape

Public Member Functions

int set (Matrix4D xForm)
 
int read (FILE *fp)
 
int set (void)
 
Matrix4D getMatrix (void)
 
Matrix4D getInverseMatrix (void)
 
Matrix4D getNormalMatrix (void)
 
void writeBegin (int indent, FILE *fp=stdout)
 
void writeEnd (int indent, FILE *fp=stdout)
 
int isStatic (void)
 
- Public Member Functions inherited from RayGroup
void addShape (RayShape *shape)
 
int shapeNum (void)
 
void write (int indent, FILE *fp=stdout)
 
BoundingBox3D setBoundingBox (void)
 
double intersect (Ray3D ray, struct RayIntersectionInfo &iInfo, double mx=-1)
 
void setUpOpenGL (int cplx)
 
int drawOpenGL (int materialIndex)
 

Public Attributes

Matrix4D localTransform
 
- Public Attributes inherited from RayGroup
int sNum
 
RayShape ** shapes
 
class RayShapeHithits
 
- Public Attributes inherited from RayShape
BoundingBox3D bBox
 
int openGLComplexity
 

Detailed Description

This subclass of RayGroup represents a node in the scene graph whose transformation matrix is constant.

Member Function Documentation

Matrix4D StaticRayGroup::getInverseMatrix ( void  )
virtual

This method returns the inverse of the transformation associated with the group.

Implements RayGroup.

Matrix4D StaticRayGroup::getMatrix ( void  )
virtual

This method returns the transformation associated with the group.

Implements RayGroup.

Matrix4D StaticRayGroup::getNormalMatrix ( void  )
virtual

This method returns the transformation that acts on the surface normals.

Implements RayGroup.

int StaticRayGroup::isStatic ( void  )
virtual

This method returns TRUE if the subtree beneath the group represents a static object in the scene. If any of nodes in the scene graph beneath are not static, this method will return FALSE.

Reimplemented from RayShape.

int StaticRayGroup::read ( FILE *  fp)

This method reads in the transformation matrix from a .ray file.

int StaticRayGroup::set ( Matrix4D  xForm)

This method sets the the transformation matrix of the node.

int StaticRayGroup::set ( void  )

This method sets the invers and normal transformations of the matrix.

void StaticRayGroup::writeBegin ( int  indent,
FILE *  fp = stdout 
)
virtual

This virtual method specifies how the header of the node should be written out to a .ray file.

Implements RayGroup.

void StaticRayGroup::writeEnd ( int  indent,
FILE *  fp = stdout 
)
virtual

This virtual method specifies how the footer of the node should be written out to a .ray file.

Implements RayGroup.

Member Data Documentation

Matrix4D StaticRayGroup::localTransform

The constant transformation associated to the node.


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