HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdSt_UnitTestGLDrawing Class Referenceabstract

#include <unitTestGLDrawing.h>

Public Member Functions

HDST_API HdSt_UnitTestGLDrawing ()
 
virtual HDST_API ~HdSt_UnitTestGLDrawing ()
 
HDST_API int GetWidth () const
 
HDST_API int GetHeight () const
 
HDST_API void RunTest (int argc, char *argv[])
 
virtual void InitTest ()=0
 
virtual HDST_API void UninitTest ()
 
virtual void DrawTest ()=0
 
virtual void OffscreenTest ()=0
 
virtual HDST_API void MousePress (int button, int x, int y, int modKeys)
 
virtual HDST_API void MouseRelease (int button, int x, int y, int modKeys)
 
virtual HDST_API void MouseMove (int x, int y, int modKeys)
 
virtual HDST_API void KeyRelease (int key)
 
virtual HDST_API void Idle ()
 
HDST_API bool WriteToFile (std::string const &attachment, std::string const &filename) const
 

Protected Member Functions

virtual HDST_API void ParseArgs (int argc, char *argv[])
 
void SetCameraRotate (float rx, float ry)
 
void SetCameraTranslate (GfVec3f t)
 
GfVec3f GetCameraTranslate () const
 
HDST_API GfMatrix4d GetViewMatrix () const
 
HDST_API GfMatrix4d GetProjectionMatrix () const
 
HDST_API GfFrustum GetFrustum () const
 
GfVec2i GetMousePos () const
 

Detailed Description

A helper class for unit tests which need to perform GL drawing.

Definition at line 44 of file unitTestGLDrawing.h.

Constructor & Destructor Documentation

HDST_API HdSt_UnitTestGLDrawing::HdSt_UnitTestGLDrawing ( )
virtual HDST_API HdSt_UnitTestGLDrawing::~HdSt_UnitTestGLDrawing ( )
virtual

Member Function Documentation

virtual void HdSt_UnitTestGLDrawing::DrawTest ( )
pure virtual
GfVec3f HdSt_UnitTestGLDrawing::GetCameraTranslate ( ) const
inlineprotected

Definition at line 89 of file unitTestGLDrawing.h.

HDST_API GfFrustum HdSt_UnitTestGLDrawing::GetFrustum ( ) const
protected
HDST_API int HdSt_UnitTestGLDrawing::GetHeight ( ) const
GfVec2i HdSt_UnitTestGLDrawing::GetMousePos ( ) const
inlineprotected

Definition at line 99 of file unitTestGLDrawing.h.

HDST_API GfMatrix4d HdSt_UnitTestGLDrawing::GetProjectionMatrix ( ) const
protected
HDST_API GfMatrix4d HdSt_UnitTestGLDrawing::GetViewMatrix ( ) const
protected
HDST_API int HdSt_UnitTestGLDrawing::GetWidth ( ) const
virtual HDST_API void HdSt_UnitTestGLDrawing::Idle ( )
virtual
virtual void HdSt_UnitTestGLDrawing::InitTest ( )
pure virtual
virtual HDST_API void HdSt_UnitTestGLDrawing::KeyRelease ( int  key)
virtual
virtual HDST_API void HdSt_UnitTestGLDrawing::MouseMove ( int  x,
int  y,
int  modKeys 
)
virtual
virtual HDST_API void HdSt_UnitTestGLDrawing::MousePress ( int  button,
int  x,
int  y,
int  modKeys 
)
virtual
virtual HDST_API void HdSt_UnitTestGLDrawing::MouseRelease ( int  button,
int  x,
int  y,
int  modKeys 
)
virtual
virtual void HdSt_UnitTestGLDrawing::OffscreenTest ( )
pure virtual
virtual HDST_API void HdSt_UnitTestGLDrawing::ParseArgs ( int  argc,
char *  argv[] 
)
protectedvirtual
HDST_API void HdSt_UnitTestGLDrawing::RunTest ( int  argc,
char *  argv[] 
)
void HdSt_UnitTestGLDrawing::SetCameraRotate ( float  rx,
float  ry 
)
inlineprotected

Definition at line 83 of file unitTestGLDrawing.h.

void HdSt_UnitTestGLDrawing::SetCameraTranslate ( GfVec3f  t)
inlineprotected

Definition at line 86 of file unitTestGLDrawing.h.

virtual HDST_API void HdSt_UnitTestGLDrawing::UninitTest ( )
virtual
HDST_API bool HdSt_UnitTestGLDrawing::WriteToFile ( std::string const attachment,
std::string const filename 
) const

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