Actin®  Version 5.2.0
Software for Robotics Simulation and Control
ecBbTreeHeuristic.h
Go to the documentation of this file.
1 #ifndef ecBbTreeHeuristic_H_
2 #define ecBbTreeHeuristic_H_
3 //------------------------------------------------------------------------------
4 // Copyright (c) 2003-2013 Energid Technologies. All rights reserved.
5 //
10 //
11 //------------------------------------------------------------------------------
12 #include <actinCore/actinCore_config.h> // Required to be first header.
13 #include "ecLineSegment.h"
14 #include <xml/ecXmlBasicType.h>
15 #include <xml/ecXmlCompType.h>
16 
19 {
20 public:
23  (
24  );
25 
27  virtual ~EcBBTreeHeuristic
28  (
29  );
30 
33  (
34  const EcBBTreeHeuristic& orig
35  );
36 
38  EcBBTreeHeuristic& operator=
39  (
40  const EcBBTreeHeuristic& orig
41  );
42 
44  EcBoolean operator==
45  (
46  const EcBBTreeHeuristic& orig
47  ) const;
48 
50  virtual EcBoolean equality
51  (
52  const EcXmlObject* other
53  )const EC_OVERRIDE;
54 
56  virtual EcXmlObject* newObject
57  (
58  ) const EC_OVERRIDE;
59 
61  virtual const EcU32& maxTreeDepth
62  (
63  )const;
64 
65 
67  virtual void setMaxTreeDepth
68  (
69  const EcU32& treeDepth
70  );
71 
73  virtual const EcU32& minPrimitiveCount
74  (
75  )const;
76 
77 
79  virtual void setMinPrimitiveCount
80  (
81  const EcU32& minPrimitiveCount
82  );
83 
84 
86  virtual const EcU32& targetPrimitiveCount
87  (
88  )const;
89 
90 
92  virtual void setTargetPrimitiveCount
93  (
94  const EcU32& targetPrimCount
95  );
96 
98  virtual const EcReal& minimumError
99  (
100  )const;
101 
103  virtual void setMinimumError
104  (
105  const EcReal& minError
106  );
107 
109  virtual EcBoolean xmlInit
110  (
111  ) EC_OVERRIDE;
112 
114  virtual EcXmlObject* clone
115  (
116  ) const EC_OVERRIDE;
117 
119  virtual void registerComponents
120  (
121  ) EC_OVERRIDE;
122 
123  virtual const EcToken& token
124  (
125  ) const EC_OVERRIDE;
126 
128  virtual EcBoolean read
129  (
130  EcXmlReader& stream
131  ) EC_OVERRIDE;
132 
134  virtual EcBoolean write
135  (
136  EcXmlWriter& stream
137  ) const EC_OVERRIDE;
138 
140  static EcBBTreeHeuristic nullObject
141  (
142  );
143 
144 protected:
147 
150 
153 
156 };
157 
158 #endif // ecBbTreeHeuristic_H_
virtual const EcToken & token() const =0
gets the xml token used for writing out.
EcXmlU32 m_MaxTreeDepth
maximum tree depth
#define EC_OVERRIDE
Add wrapper around c++11 override keyword.
Definition: ecMacros.h:36
boost::uint32_t EcU32
32-bit unsigned integer
Definition: ecTypes.h:53
virtual EcBoolean xmlInit() EC_OVERRIDE
xmlInitialize
Holds a class used to describe the heuristic used by the BB tree for determining when decompose the t...
EcReal m_MinError
minimum error required
An EcString-like class that holds a tag and a namespace.
Definition: ecToken.h:41
A base class for xml objects.
Definition: ecXmlObject.h:23
EcXmlU32 m_TargetPrimitiveCount
target primitive count
virtual void registerComponents()=0
register components
virtual EcBoolean read(EcXmlReader &stream) EC_OVERRIDE
read object from an XML stream
Configuration header for the foundation hierarchy.
An XML object that holds a compound set of XML data.
Definition: ecXmlCompType.h:23
virtual EcBoolean write(EcXmlWriter &stream) const EC_OVERRIDE
write object to an XML stream
virtual EcXmlObject * clone() const =0
clone
bool EcBoolean
Boolean (0 or 1)
Definition: ecTypes.h:21
XML file writer.
Definition: ecXmlWriter.h:19
virtual EcBoolean equality(const EcXmlObject *other) const =0
equality - a virtual equality to an EcXmlObject pointer
EcF64 EcReal
Alias for 64-bit float.
Definition: ecTypes.h:30
virtual EcXmlObject * newObject() const =0
creates new object - a virtual new to an EcXmlObject pointer
An XML file reader.
Definition: ecXmlReader.h:17
#define EC_ACTINCORE_GEOMETRY_DECL
geometry directory
EcXmlU32 m_MinPrimitiveCount
minimum primitive count
Created by Energid Technologies www.energid.com
Copyright © 2016 Energid. All trademarks mentioned in this document are property of their respective owners.