FAST  3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
fast::Text Class Reference

#include <Text.hpp>

+ Inheritance diagram for fast::Text:
+ Collaboration diagram for fast::Text:

Public Member Functions

void create (std::string text, Color color=Color::Green())
 
void setPosition (Vector2f position)
 
void free (ExecutionDevice::pointer device)
 
void freeAll ()
 
std::string getText () const
 
void setText (std::string text)
 
Color getColor () const
 
void setColor (Color color)
 
void setTextHeight (float millimeters)
 
float getTextHeight () const
 
- Public Member Functions inherited from fast::SpatialDataObject
 SpatialDataObject ()
 
virtual DataBoundingBox getBoundingBox () const
 
virtual DataBoundingBox getTransformedBoundingBox () const
 
SceneGraphNode::pointer getSceneGraphNode () const
 
- Public Member Functions inherited from fast::DataObject
 DataObject ()
 
void setMetadata (std::string name, std::string value)
 
void setMetadata (std::unordered_map< std::string, std::string > metadata)
 
std::string getMetadata (std::string name) const
 
std::unordered_map< std::string, std::string > getMetadata () const
 
void deleteMetadata (std::string name)
 
uint64_t getTimestamp () const
 
void updateModifiedTimestamp ()
 
virtual ~DataObject ()
 
virtual std::string getNameOfClass () const =0
 
uint64_t getCreationTimestamp () const
 
void setCreationTimestamp (uint64_t timestamp)
 
void setLastFrame (std::string streamer)
 
bool isLastFrame ()
 
bool isLastFrame (std::string streamer)
 
std::unordered_set< std::string > getLastFrame ()
 
void setFrameData (std::string name, std::string value)
 
std::string getFrameData (std::string name)
 
std::unordered_map< std::string, std::string > getFrameData ()
 
void accessFinished ()
 
- Public Member Functions inherited from fast::Object
 Object ()
 
virtual ~Object ()
 
ReportergetReporter ()
 

Protected Member Functions

 Text ()
 
- Protected Member Functions inherited from fast::DataObject
void blockIfBeingWrittenTo ()
 
void blockIfBeingAccessed ()
 
- Protected Member Functions inherited from fast::Object
ReporterreportError ()
 
ReporterreportWarning ()
 
ReporterreportInfo ()
 
ReporterEnd reportEnd () const
 

Protected Attributes

std::string m_text = ""
 
Color m_color = Color::Green()
 
float m_textHeight = 3.0f
 
- Protected Attributes inherited from fast::SpatialDataObject
DataBoundingBox mBoundingBox
 
- Protected Attributes inherited from fast::DataObject
std::mutex mDataIsBeingWrittenToMutex
 
std::condition_variable mDataIsBeingWrittenToCondition
 
bool mDataIsBeingWrittenTo
 
std::mutex mDataIsBeingAccessedMutex
 
std::condition_variable mDataIsBeingAccessedCondition
 
bool mDataIsBeingAccessed
 
- Protected Attributes inherited from fast::Object
std::weak_ptr< ObjectmPtr
 

Additional Inherited Members

- Public Types inherited from fast::SpatialDataObject
typedef std::shared_ptr< SpatialDataObjectpointer
 
- Public Types inherited from fast::DataObject
typedef std::shared_ptr< DataObjectpointer
 
- Public Types inherited from fast::Object
typedef std::shared_ptr< Objectpointer
 
- Static Public Member Functions inherited from fast::SpatialDataObject
static std::string getStaticNameOfClass ()
 
- Static Public Member Functions inherited from fast::DataObject
static std::string getStaticNameOfClass ()
 
- Static Public Member Functions inherited from fast::Object
static std::string getStaticNameOfClass ()
 

Constructor & Destructor Documentation

◆ Text()

fast::Text::Text ( )
inlineprotected

Member Function Documentation

◆ create()

void fast::Text::create ( std::string  text,
Color  color = Color::Green() 
)

◆ free()

void fast::Text::free ( ExecutionDevice::pointer  device)
inlinevirtual

Implements fast::DataObject.

◆ freeAll()

void fast::Text::freeAll ( )
inlinevirtual

Implements fast::DataObject.

◆ getColor()

Color fast::Text::getColor ( ) const

◆ getText()

std::string fast::Text::getText ( ) const

◆ getTextHeight()

float fast::Text::getTextHeight ( ) const

◆ setColor()

void fast::Text::setColor ( Color  color)

◆ setPosition()

void fast::Text::setPosition ( Vector2f  position)

◆ setText()

void fast::Text::setText ( std::string  text)

◆ setTextHeight()

void fast::Text::setTextHeight ( float  millimeters)

Member Data Documentation

◆ m_color

Color fast::Text::m_color = Color::Green()
protected

◆ m_text

std::string fast::Text::m_text = ""
protected

◆ m_textHeight

float fast::Text::m_textHeight = 3.0f
protected

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