AGX Dynamics  2.37.3.2
agxPlot::Output Class Referenceabstract

#include <Output.h>

+ Inheritance diagram for agxPlot::Output:

Public Member Functions

 Output ()
 
virtual void closeOutput ()=0
 
agxPlot::Queue * getQueue ()
 
agxPlot::System * getSystem ()
 
virtual void handlePacket (DataPacket *packet)=0
 
virtual void handlePacket (DescriptionPacket *packet)=0
 The description is as follows: More...
 
virtual void handlePacket (TimePacket *packet)=0
 
virtual bool isReady ()
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor. More...
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting. More...
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match. More...
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object. More...
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 

Protected Member Functions

virtual ~Output ()
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

QueueRef m_queue
 
System * m_system
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Additional Inherited Members

- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- Static Protected Member Functions inherited from agx::Referenced
static DeleteHandler * getDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More...
 

Detailed Description

Definition at line 32 of file Output.h.

Constructor & Destructor Documentation

◆ Output()

agxPlot::Output::Output ( )

◆ ~Output()

virtual agxPlot::Output::~Output ( )
protectedvirtual

Member Function Documentation

◆ closeOutput()

virtual void agxPlot::Output::closeOutput ( )
pure virtual

Implemented in agxPlot::FilePlot.

◆ getQueue()

agxPlot::Queue* agxPlot::Output::getQueue ( )

◆ getSystem()

agxPlot::System* agxPlot::Output::getSystem ( )

◆ handlePacket() [1/3]

virtual void agxPlot::Output::handlePacket ( DataPacket *  packet)
pure virtual

Implemented in agxPlot::FilePlot.

◆ handlePacket() [2/3]

virtual void agxPlot::Output::handlePacket ( DescriptionPacket *  packet)
pure virtual

The description is as follows:

root is the description of a agxPlot::System

agxPlot::System description:

["windows"] = an array of all agxPlot::Window descriptions. ["data"] = an array of tuples. Contains ["id"] with the data id and ["values"] which is an array of real values. Optional field

agxPlot::Window description:

["name"] = the name of the window ["curves"] = an array of descriptions of all agxPlot::Curve s owned by the window

agxPlot::Curve description:

["name"] = the name of the curve ["id"] = the unique id of the curve ["color_r"] = the red value of the line color ["color_g"] = the green value of the line color ["color_b"] = the blue value of the line color ["color_a"] = the alpha value of the line color ["lineType"] = an int describing the type of line ["lineWidth"] = the width of the line in pixels ["symbol"] = an int describing the type of symbol ["xAxis"] = the description of the X axis DataSeries ["yAxis"] = the description of the Y axis DataSeries

agxPlot::DataSeries description:

["name"] = the name of the data series (axis) ["unit"] = the unit of the data series ["isLogarithmic"] = should the data series be viewed as logarithmic ["isTime"] = the data series represents time ["id"] = the id of the data series

Implemented in agxPlot::FilePlot.

◆ handlePacket() [3/3]

virtual void agxPlot::Output::handlePacket ( TimePacket *  packet)
pure virtual

Implemented in agxPlot::FilePlot.

◆ isReady()

virtual bool agxPlot::Output::isReady ( )
inlinevirtual

Definition at line 85 of file Output.h.

Member Data Documentation

◆ m_queue

QueueRef agxPlot::Output::m_queue
protected

Definition at line 103 of file Output.h.

◆ m_system

System* agxPlot::Output::m_system
protected

Definition at line 102 of file Output.h.


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