VAPOR3 3.9.4
Classes | Public Member Functions | List of all members
VAPoR::AnnotationRenderer Class Reference

Class that draws various geometry as specified by AnnotationParams. More...

#include <AnnotationRenderer.h>

Inheritance diagram for VAPoR::AnnotationRenderer:
Wasp::MyBase

Public Member Functions

 AnnotationRenderer (const ParamsMgr *pm, const DataStatus *dataStatus, string winName)
 Constructor, must invoke Renderer constructor.
 
void InitializeGL (GLManager *glManager)
 Method to initialize GL rendering. Must be called from a GL context.
 
virtual ~AnnotationRenderer ()
 Destructor.
 
void InScenePaint (size_t ts)
 Render the in-scene features.
 
void OverlayPaint (size_t ts)
 Render the overlay features.
 
void AddText (string text, int x, int y, int size, float color[3], int type=0)
 
void AddTextNormalizedCoords (string text, float x, float y, int size, float color[3], int type=0)
 
void DrawText ()
 
void DrawText (vector< billboard > billboards)
 
void ClearText (int type=-1)
 
void DrawAxisArrows ()
 Draw Axis arrows.
 
- Public Member Functions inherited from Wasp::MyBase
 MyBase ()
 
const string & getClassName () const
 

Additional Inherited Members

- Public Types inherited from Wasp::MyBase
typedef void(* ErrMsgCB_T) (const char *msg, int err_code)
 
typedef void(* DiagMsgCB_T) (const char *msg)
 
- Static Public Member Functions inherited from Wasp::MyBase
static void SetErrMsg (const char *format,...)
 Record a formatted error message.
 
static void SetErrMsg (int errcode, const char *format,...)
 Record a formatted error message and an error code.
 
static const char * GetErrMsg ()
 
static void SetErrCode (int err_code)
 Record an error code.
 
static int GetErrCode ()
 Retrieve the current error code.
 
static void SetErrMsgCB (ErrMsgCB_T cb)
 
static ErrMsgCB_T GetErrMsgCB ()
 
static void SetErrMsgFilePtr (FILE *fp)
 
static const FILE * SetErrMsgFilePtr ()
 
static void SetDiagMsg (const char *format,...)
 Record a formatted diagnostic message.
 
static const char * GetDiagMsg ()
 
static void SetDiagMsgCB (DiagMsgCB_T cb)
 
static DiagMsgCB_T GetDiagMsgCB ()
 
static void SetDiagMsgFilePtr (FILE *fp)
 
static bool EnableErrMsg (bool enable)
 
static bool GetEnableErrMsg ()
 
- Static Public Attributes inherited from Wasp::MyBase
static char * ErrMsg
 
static int ErrCode
 
static int ErrMsgSize
 
static FILE * ErrMsgFilePtr
 
static ErrMsgCB_T ErrMsgCB
 
static char * DiagMsg
 
static int DiagMsgSize
 
static FILE * DiagMsgFilePtr
 
static DiagMsgCB_T DiagMsgCB
 
static bool Enabled
 
- Protected Member Functions inherited from Wasp::MyBase
void SetClassName (const string &name)
 

Detailed Description

Class that draws various geometry as specified by AnnotationParams.

Author
Alan Norton
Version
3.0
Date
July 2015

Definition at line 40 of file AnnotationRenderer.h.

Constructor & Destructor Documentation

◆ AnnotationRenderer()

VAPoR::AnnotationRenderer::AnnotationRenderer ( const ParamsMgr pm,
const DataStatus dataStatus,
string  winName 
)

Constructor, must invoke Renderer constructor.

◆ ~AnnotationRenderer()

virtual VAPoR::AnnotationRenderer::~AnnotationRenderer ( )
virtual

Destructor.

Member Function Documentation

◆ AddText()

void VAPoR::AnnotationRenderer::AddText ( string  text,
int  x,
int  y,
int  size,
float  color[3],
int  type = 0 
)

◆ AddTextNormalizedCoords()

void VAPoR::AnnotationRenderer::AddTextNormalizedCoords ( string  text,
float  x,
float  y,
int  size,
float  color[3],
int  type = 0 
)

◆ ClearText()

void VAPoR::AnnotationRenderer::ClearText ( int  type = -1)

◆ DrawAxisArrows()

void VAPoR::AnnotationRenderer::DrawAxisArrows ( )

Draw Axis arrows.

◆ DrawText() [1/2]

void VAPoR::AnnotationRenderer::DrawText ( )

◆ DrawText() [2/2]

void VAPoR::AnnotationRenderer::DrawText ( vector< billboard >  billboards)

◆ InitializeGL()

void VAPoR::AnnotationRenderer::InitializeGL ( GLManager glManager)

Method to initialize GL rendering. Must be called from a GL context.

◆ InScenePaint()

void VAPoR::AnnotationRenderer::InScenePaint ( size_t  ts)

Render the in-scene features.

◆ OverlayPaint()

void VAPoR::AnnotationRenderer::OverlayPaint ( size_t  ts)

Render the overlay features.


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