Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
ProjectorClass Class Reference

#include <projector.h>

Inherited by DecalGeneratorClass, and TexProjectClass.

Public Member Functions

 ProjectorClass (void)
 
virtual ~ProjectorClass (void)
 
virtual void Set_Transform (const Matrix3D &tm)
 
virtual const Matrix3DGet_Transform (void) const
 
virtual void Set_Perspective_Projection (float hfov, float vfov, float znear, float zfar)
 
virtual void Set_Ortho_Projection (float xmin, float xmax, float ymin, float ymax, float znear, float zfar)
 
const OBBoxClassGet_Bounding_Volume (void) const
 
void Compute_Texture_Coordinate (const Vector3 &point, Vector3 *set_stq)
 
MatrixMapperClassPeek_Mapper () const
 

Protected Member Functions

virtual void Update_WS_Bounding_Volume (void)
 

Protected Attributes

Matrix3D Transform
 
Matrix4x4 Projection
 
AABoxClass LocalBoundingVolume
 
OBBoxClass WorldBoundingVolume
 
MatrixMapperClassMapper
 

Detailed Description

ProjectorClass This is a class which encapsulates the data needed to describe a projection. It isn't really useful by itself but it is a common base class between TexProjectClass and DecalGeneratorClass.

Definition at line 58 of file projector.h.

Constructor & Destructor Documentation

◆ ProjectorClass()

ProjectorClass::ProjectorClass ( void )

Definition at line 64 of file projector.cpp.

◆ ~ProjectorClass()

ProjectorClass::~ProjectorClass ( void )
virtual

Definition at line 85 of file projector.cpp.

Member Function Documentation

◆ Compute_Texture_Coordinate()

void ProjectorClass::Compute_Texture_Coordinate ( const Vector3 & point,
Vector3 * set_stq )

Definition at line 210 of file projector.cpp.

◆ Get_Bounding_Volume()

const OBBoxClass & ProjectorClass::Get_Bounding_Volume ( void ) const
inline

Definition at line 71 of file projector.h.

◆ Get_Transform()

const Matrix3D & ProjectorClass::Get_Transform ( void ) const
virtual

Definition at line 125 of file projector.cpp.

◆ Peek_Mapper()

MatrixMapperClass * ProjectorClass::Peek_Mapper ( ) const
inline

Definition at line 74 of file projector.h.

◆ Set_Ortho_Projection()

void ProjectorClass::Set_Ortho_Projection ( float xmin,
float xmax,
float ymin,
float ymax,
float znear,
float zfar )
virtual

Reimplemented in TexProjectClass.

Definition at line 186 of file projector.cpp.

◆ Set_Perspective_Projection()

void ProjectorClass::Set_Perspective_Projection ( float hfov,
float vfov,
float znear,
float zfar )
virtual

Reimplemented in TexProjectClass.

Definition at line 149 of file projector.cpp.

◆ Set_Transform()

void ProjectorClass::Set_Transform ( const Matrix3D & tm)
virtual

Definition at line 106 of file projector.cpp.

◆ Update_WS_Bounding_Volume()

void ProjectorClass::Update_WS_Bounding_Volume ( void )
protectedvirtual

Reimplemented in TexProjectClass.

Definition at line 228 of file projector.cpp.

Member Data Documentation

◆ LocalBoundingVolume

AABoxClass ProjectorClass::LocalBoundingVolume
protected

Definition at line 83 of file projector.h.

◆ Mapper

MatrixMapperClass* ProjectorClass::Mapper
protected

Definition at line 86 of file projector.h.

◆ Projection

Matrix4x4 ProjectorClass::Projection
protected

Definition at line 81 of file projector.h.

◆ Transform

Matrix3D ProjectorClass::Transform
protected

Definition at line 80 of file projector.h.

◆ WorldBoundingVolume

OBBoxClass ProjectorClass::WorldBoundingVolume
protected

Definition at line 84 of file projector.h.


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