AGX Dynamics
2.38.0.2
Loading...
Searching...
No Matches
BufferPrinter.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
#ifndef AGX_BUFFERPRINTER_H
18
#define AGX_BUFFERPRINTER_H
19
20
#include <
agx/Task.h
>
21
#include <
agx/TaskTemplate.h
>
22
#include <
agx/IndexRange.h
>
23
#include <
agx/Parameter.h
>
24
#include <
agx/Vector.h
>
25
#include <
agxIO/Events.h
>
26
#include <
agx/Bound.h
>
27
#include <
agx/String.h
>
28
29
namespace
agx
30
{
31
class
BufferPrinter
:
public
SerialTask
32
{
33
public
:
34
BufferPrinter
(
Device
* device);
35
~BufferPrinter
();
36
virtual
void
run
();
37
38
private
:
39
ScalarParameterRef
m_rangeParameter;
40
agx::Bound1u
m_range;
41
size_t
m_rangeLength;
42
agxIO::InputEvent::CallbackType
m_printAlwaysCallback;
43
agxIO::InputEvent::CallbackType
m_printOnceCallback;
44
agxIO::InputEvent::CallbackType
m_printImmediatelyCallback;
45
46
void
print();
47
void
requestOnePrint();
48
void
requestContinuousPrint();
49
void
requestImmediatePrint();
50
bool
m_printOnce;
51
52
typedef
Vector<agx::String>
ColumnContent
;
53
typedef
Vector<ColumnContent>
Columns
;
54
Columns
m_toPrint;
55
Vector<agx::UInt>
m_columnWidths;
56
57
void
fillToPrint(
const
ParameterPtrVector
& arguments);
58
void
findColumnWidths();
59
void
printColumns();
60
61
};
62
}
63
64
#endif
65
Bound.h
Events.h
IndexRange.h
Parameter.h
String.h
TaskTemplate.h
Task.h
Vector.h
agx::BoundT< UInt >
agx::BufferPrinter
Definition
BufferPrinter.h:32
agx::BufferPrinter::run
virtual void run()
Execution callback.
agx::BufferPrinter::BufferPrinter
BufferPrinter(Device *device)
agx::BufferPrinter::~BufferPrinter
~BufferPrinter()
agx::Callback2
Templated callback with two arguments.
Definition
Callback.h:140
agx::Device
An agx::Device is an abstract representation of a device on which data can be stored and processed.
Definition
Device.h:58
agx::SerialTask
SerialTask.
Definition
Task.h:470
agx::VectorPOD< Parameter * >
agx::Vector
Templated vector class.
Definition
agx/Vector.h:53
agx::ref_ptr< ScalarParameter >
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition
AddedMassInteraction.h:23
Components
agx
Foundation
BufferPrinter.h
Generated on Sun Sep 1 2024 11:24:32 for AGX Dynamics by
1.9.8