AGX Dynamics  2.38.0.2
Output.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #pragma once
18 
19 #include <agxPlot/Queue.h>
20 #include <agxPlot/DataPacket.h>
22 #include <agxPlot/TimePacket.h>
23 
24 namespace agxPlot
25 {
26  class System;
30 
35  {
36  public:
37  Output();
38 
39  agxPlot::System *getSystem();
40  agxPlot::Queue* getQueue();
41 
42  virtual void handlePacket(DataPacket *packet) = 0;
43 
83  virtual void handlePacket(DescriptionPacket *packet) = 0;
84  virtual void handlePacket(TimePacket* packet) = 0;
85  virtual void closeOutput() = 0;
86 
87  virtual bool isReady() { return true; };
88 
89  protected:
90  virtual ~Output();
91 
92  private:
93  friend class System;
98  void setSystem(System *system);
99 
100  void update();
101 
102 
103  protected:
106  };
107 }
agxPlot::DataPacket
Package of points for a specified curve.
Definition: DataPacket.h:55
agxPlot
Namespace contains functionality related to plotting.
agxPlot::DescriptionPacket
Class that describes a package with plot data.
Definition: DescriptionPacket.h:28
agxPlot::Output::m_system
System * m_system
Definition: Output.h:104
agxPlot::Output::m_queue
QueueRef m_queue
Definition: Output.h:105
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agxPlot::Queue
Definition: Queue.h:29
agxPlot::TimePacket
Definition: TimePacket.h:24
AGX_DECLARE_VECTOR_TYPES
#define AGX_DECLARE_VECTOR_TYPES(type)
Definition: Vector.h:34
agx::ref_ptr< Queue >
DataPacket.h
TimePacket.h
Queue.h
agxPlot::System
System that manages the plotting system.
Definition: System.h:38
agxPlot::Output::isReady
virtual bool isReady()
Definition: Output.h:87
agx::Referenced
Base class providing referencing counted objects.
Definition: Referenced.h:119
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
agxPlot::Output
THis class wraps the description of data that should be plotted.
Definition: Output.h:34
DescriptionPacket.h