Workspace 6.21.5
Public Types | Public Member Functions | Public Attributes | List of all members
WSGLGlyphSet Class Reference

#include <Rendering/OpenGL/wsglglyphset.h>

Public Types

enum class  Type { Node , Element }
 

Public Member Functions

 WSGLGlyphSet ()
 
 WSGLGlyphSet (const WSGLGlyphSet &other)=delete
 
 ~WSGLGlyphSet ()
 
void addGlyph (WSGLInstancedItem &glyph)
 
void clearGlyphs ()
 
const QVector< WSGLInstancedItem * > & getAsVector () const
 
unsigned int getCostKb () const
 
const Mesh::ElementType::TypegetElementType () const
 
WSGLInstancedItemgetGlyph (const QString &modelId, const Mesh::MeshModelLibrary &library)
 
WSGLInstancedItemgetGlyph (unsigned index)
 
const QDateTime & getLastUpdated () const
 
Type getType () const
 
bool hasGlyph (const QString &modelId, const Mesh::MeshModelLibrary &library) const
 
bool hasGlyph (const WSGLInstancedItem &glyph) const
 
bool hasGlyphs () const
 
WSGLGlyphSetoperator= (const WSGLGlyphSet &rhs)=delete
 
void setElementType (const Mesh::ElementType::Type *elementType) const
 

Public Attributes

enum CSIRO::Rendering::WSGLGlyphSet::Type Node
 

Member Enumeration Documentation

◆ Type

enum class Type
strong
Enumerator
Node 
Element 

Constructor & Destructor Documentation

◆ WSGLGlyphSet() [1/2]

◆ ~WSGLGlyphSet()

◆ WSGLGlyphSet() [2/2]

WSGLGlyphSet ( const WSGLGlyphSet other)
delete

Member Function Documentation

◆ addGlyph()

void addGlyph ( WSGLInstancedItem glyph)

Adds a new glyph to the RenderItem.

Note
The RenderItem will take ownership of this glyph - when the render item is deleted, or its glyphs are cleared, it will take responsibility for deleting the glyph.
Parameters
glyphThe glyph which is to be added to the render item.

◆ clearGlyphs()

void clearGlyphs ( )

◆ getAsVector()

const QVector< WSGLInstancedItem * > & getAsVector ( ) const

◆ getCostKb()

unsigned int getCostKb ( ) const

◆ getElementType()

const CSIRO::Mesh::ElementType::Type * getElementType ( ) const

◆ getGlyph() [1/2]

WSGLInstancedItem * getGlyph ( const QString &  modelId,
const Mesh::MeshModelLibrary library 
)

◆ getGlyph() [2/2]

WSGLInstancedItem * getGlyph ( unsigned  index)

◆ getLastUpdated()

const QDateTime & getLastUpdated ( ) const

◆ getType()

◆ hasGlyph() [1/2]

bool hasGlyph ( const QString &  modelId,
const Mesh::MeshModelLibrary library 
) const

◆ hasGlyph() [2/2]

bool hasGlyph ( const WSGLInstancedItem glyph) const
Returns
True if the specified glyph is contained within this render item, false otherwise.
Parameters
glyphThe glyph being tested.

◆ hasGlyphs()

bool hasGlyphs ( ) const

◆ operator=()

WSGLGlyphSet & operator= ( const WSGLGlyphSet rhs)
delete

◆ setElementType()

void setElementType ( const Mesh::ElementType::Type elementType) const

Member Data Documentation

◆ Node