AGX Dynamics  2.38.0.2
RouteInitializationReport.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 <agx/Real.h>
20 #include <agx/Integer.h>
21 
22 #include <agxCable/export.h>
23 #include <agxCable/CableSegment.h>
24 #include <agxCable/Node.h>
25 
26 namespace agxCable
27 {
29  {
30  public:
39 
43  RouteInitializationReport(agx::Real targetError, agx::Real actualError, agx::Real resolution, size_t numNodes);
44 
48  agx::Bool successful() const;
49 
53  agx::Real getTargetError() const;
54 
58  agx::Real getActualError() const;
59 
63  size_t getNumSegments() const;
64 
68  agx::Real getResolution() const;
69 
75  agx::Real getLength() const;
76 
77 
78  public:
79  void store(agxStream::OutputArchive& out) const;
80  void restore(agxStream::InputArchive& in);
81 
82  private:
83  agx::Real m_targetError;
84  agx::Real m_actualError;
85  agx::Real m_resolution;
86  size_t m_numSegments;
87  };
88 }
CableSegment.h
agx::Real
double Real
Definition: Real.h:42
export.h
agxStream::out
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive.
Definition: OutputArchive.h:412
agxCable
Contain classes for 6 DOF lumped element cables/wires/ropes.
Definition: able/Attachment.h:36
AGXCABLE_EXPORT
#define AGXCABLE_EXPORT
Definition: agxCable/export.h:41
agxStream::in
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
Definition: InputArchive.h:399
Node.h
Integer.h
agxStream::OutputArchive
Class for writing serialized data in binary format to a stream.
Definition: OutputArchive.h:56
agxStream::InputArchive
Class for reading a binary stream of serialized data.
Definition: InputArchive.h:50
agx::Bool
bool Bool
Definition: Integer.h:40
agxCable::RouteInitializationReport
Definition: RouteInitializationReport.h:28
Real.h