Represents a EShape hierarchy with a single root. This hierarchy can be retrieved from files in different file formats. More...
#include <eVision/EasyGauge/EVectorModel.h>
Public Member Functions | |
| EVectorModel () | |
| Constructs an EVectorModel context. | |
| EVectorModel (const eVision::EVectorModel &other) | |
| Constructs an EVectorModel context. | |
| virtual | ~EVectorModel () throw () |
| eVision::EVectorModel & | operator= (const eVision::EVectorModel &other) |
| Assignment operator, copies another EVectorModel instance to this one. | |
| eVision::Legacy::EFrameShape & | GetRoot () |
| Gets the root of the hierarchy. | |
| float | GetScale () const |
| Gets the scale of the model. | |
| eVision::EPoint | GetCenter () const |
| Gets the center of the model. | |
| void | SetScale (float scale) |
| Sets the scale of the model. | |
| void | SetCenter (const eVision::EPoint ¢er) |
| Sets the center of the model. | |
| void | GetVectorModelExtremas (float &xmin, float &ymin, float &xmax, float &ymax, bool inSensorCoordinates) |
| Retrieves the coordinate extrema of the vector model. | |
| void | GetVectorModelExtremas (float &xmin, float &ymin, float &xmax, float &ymax) |
| Retrieves the coordinate extrema of the vector model. | |
| void | GetVectorModelExtremas (eVision::EFloatRange &xRange, eVision::EFloatRange &yRange, bool inSensorCoordinates) |
| Retrieves the coordinate extrema of the vector model. | |
| void | GetVectorModelExtremas (eVision::EFloatRange &xRange, eVision::EFloatRange &yRange) |
| Retrieves the coordinate extrema of the vector model. | |
| void | EnableDrawArea (int32_t drawWindowWidth, int32_t drawWindowHeight) |
| Enables the drawing of the EVectorModel with a specific zoom and pan. Default: false. | |
| void | DisableDrawArea () |
| Disables the custom drawing of the EVectorModel with a specific zoom and pan. | |
| void | Load (const std::string &filePath) |
| Loads a Shape.The given ESerializer must have been created for reading. | |
| void | Load (eVision::ESerializer *serializer) |
| Loads a Shape.The given ESerializer must have been created for reading. | |
| void | Save (eVision::ESerializer *serializer) |
| Saves a Shape.The given ESerializer must have been created for writing. | |
| void | Save (const std::string &filePath) |
| Saves a Shape.The given ESerializer must have been created for writing. | |
| void | Draw (eVision::EDrawAdapter *graphicContext) const |
| Draws a graphical representation of the hierarchy. | |
| void | Draw (HDC graphicContext) const |
| Draws a graphical representation of the hierarchy. | |
| void | Draw (HDC graphicContext, const eVision::ERGBColor &color) const |
| Draws a graphical representation of the hierarchy. | |
| void | DrawWithCurrentPen (HDC graphicContext) const |
| Draws a graphical representation of the hierarchy. | |
| void | LoadDXF (const std::string &fileName, float scale) |
| Loads an EVectorModel from an ascii DXF file. We do not support the whole possibilities offered by the dxf format. We are currently limited to straight polylines, lines, arcs and points. Blocks are ignored at the moment. Angles are assumed to be given in degrees. | |
| void | LoadDXF (const std::string &fileName) |
| Loads an EVectorModel from an ascii DXF file. We do not support the whole possibilities offered by the dxf format. We are currently limited to straight polylines, lines, arcs and points. Blocks are ignored at the moment. Angles are assumed to be given in degrees. | |
| void | LoadDXF (const std::string &fileName, float scale, const eVision::EPoint &origin) |
| Loads an EVectorModel from an ascii DXF file. We do not support the whole possibilities offered by the dxf format. We are currently limited to straight polylines, lines, arcs and points. Blocks are ignored at the moment. Angles are assumed to be given in degrees. | |
| EVectorModel (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Represents a EShape hierarchy with a single root. This hierarchy can be retrieved from files in different file formats.
License(s): BasicTypes
| eVision::EVectorModel::EVectorModel | ( | ) |
Constructs an EVectorModel context.
| eVision::EVectorModel::EVectorModel | ( | const eVision::EVectorModel & | other | ) |
Constructs an EVectorModel context.
| other | other EVectorModel to copy into this one. |
|
virtual | ||||||||||||
| eVision::EVectorModel::EVectorModel | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::EVectorModel::DisableDrawArea | ( | ) |
Disables the custom drawing of the EVectorModel with a specific zoom and pan.
| void eVision::EVectorModel::Draw | ( | eVision::EDrawAdapter * | graphicContext | ) | const |
Draws a graphical representation of the hierarchy.
| graphicContext | Handle of the device context on which to draw. |
| void eVision::EVectorModel::Draw | ( | HDC | graphicContext | ) | const |
Draws a graphical representation of the hierarchy.
| graphicContext | Handle of the device context on which to draw. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::EVectorModel::Draw | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color ) const |
Draws a graphical representation of the hierarchy.
| graphicContext | Handle of the device context on which to draw. |
| color | The color to draw with. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::EVectorModel::DrawWithCurrentPen | ( | HDC | graphicContext | ) | const |
Draws a graphical representation of the hierarchy.
| graphicContext | Handle of the device context on which to draw. |
Use the overload of EVectorModel::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::EVectorModel::EnableDrawArea | ( | int32_t | drawWindowWidth, |
| int32_t | drawWindowHeight ) |
Enables the drawing of the EVectorModel with a specific zoom and pan. Default: false.
| drawWindowWidth | The width of the window that the EVectorModel is drawn into |
| drawWindowHeight | The height of the window that the EVectorModel is drawn into |
| eVision::EPoint eVision::EVectorModel::GetCenter | ( | ) | const |
Gets the center of the model.
| eVision::Legacy::EFrameShape & eVision::EVectorModel::GetRoot | ( | ) |
Gets the root of the hierarchy.
| float eVision::EVectorModel::GetScale | ( | ) | const |
Gets the scale of the model.
| void eVision::EVectorModel::GetVectorModelExtremas | ( | eVision::EFloatRange & | xRange, |
| eVision::EFloatRange & | yRange ) |
Retrieves the coordinate extrema of the vector model.
| xRange | The range along the X axis. |
| yRange | The range along the Y axis. |
An exception is thrown if the hierarchy is empty
| void eVision::EVectorModel::GetVectorModelExtremas | ( | eVision::EFloatRange & | xRange, |
| eVision::EFloatRange & | yRange, | ||
| bool | inSensorCoordinates ) |
Retrieves the coordinate extrema of the vector model.
| xRange | The range along the X axis. |
| yRange | The range along the Y axis. |
| inSensorCoordinates | Specifies whether the extrema are retrieved in sensor coordinates. Default: false |
An exception is thrown if the hierarchy is empty
| void eVision::EVectorModel::GetVectorModelExtremas | ( | float & | xmin, |
| float & | ymin, | ||
| float & | xmax, | ||
| float & | ymax ) |
Retrieves the coordinate extrema of the vector model.
| xmin | The X minimum of EVectorModel. |
| ymin | The Y minimum of EVectorModel. |
| xmax | The X maximum of EVectorModel. |
| ymax | The Y maximum of EVectorModel. |
An exception is thrown if the hierarchy is empty
| void eVision::EVectorModel::GetVectorModelExtremas | ( | float & | xmin, |
| float & | ymin, | ||
| float & | xmax, | ||
| float & | ymax, | ||
| bool | inSensorCoordinates ) |
Retrieves the coordinate extrema of the vector model.
| xmin | The X minimum of EVectorModel. |
| ymin | The Y minimum of EVectorModel. |
| xmax | The X maximum of EVectorModel. |
| ymax | The Y maximum of EVectorModel. |
| inSensorCoordinates | Specifies whether the extrema are retrieved in sensor coordinates. Default: false |
An exception is thrown if the hierarchy is empty
| void eVision::EVectorModel::Load | ( | const std::string & | filePath | ) |
Loads a Shape.The given ESerializer must have been created for reading.
| filePath | The file path. |
| void eVision::EVectorModel::Load | ( | eVision::ESerializer * | serializer | ) |
Loads a Shape.The given ESerializer must have been created for reading.
| serializer | Pointer to the ESerializer created for reading. |
| void eVision::EVectorModel::LoadDXF | ( | const std::string & | fileName | ) |
Loads an EVectorModel from an ascii DXF file. We do not support the whole possibilities offered by the dxf format. We are currently limited to straight polylines, lines, arcs and points. Blocks are ignored at the moment. Angles are assumed to be given in degrees.
| fileName | The name of the dxf file. |
| void eVision::EVectorModel::LoadDXF | ( | const std::string & | fileName, |
| float | scale ) |
Loads an EVectorModel from an ascii DXF file. We do not support the whole possibilities offered by the dxf format. We are currently limited to straight polylines, lines, arcs and points. Blocks are ignored at the moment. Angles are assumed to be given in degrees.
| fileName | The name of the dxf file. |
| scale | The scale of the vector model, defaults to 1. |
| void eVision::EVectorModel::LoadDXF | ( | const std::string & | fileName, |
| float | scale, | ||
| const eVision::EPoint & | origin ) |
Loads an EVectorModel from an ascii DXF file. We do not support the whole possibilities offered by the dxf format. We are currently limited to straight polylines, lines, arcs and points. Blocks are ignored at the moment. Angles are assumed to be given in degrees.
| fileName | The name of the dxf file. |
| scale | The scale of the vector model, defaults to 1. |
| origin | The origin of the EVectorModel in the dxf's coordinates. If not specified, we try to parse the origin from the UCSORG field in the dxf headers. Otherwise, origin is (0, 0). |
| eVision::EVectorModel & eVision::EVectorModel::operator= | ( | const eVision::EVectorModel & | other | ) |
Assignment operator, copies another EVectorModel instance to this one.
| other | The EVectorModel instance to copy from. |
| void eVision::EVectorModel::Save | ( | const std::string & | filePath | ) |
Saves a Shape.The given ESerializer must have been created for writing.
| filePath | The file path. |
| void eVision::EVectorModel::Save | ( | eVision::ESerializer * | serializer | ) |
Saves a Shape.The given ESerializer must have been created for writing.
| serializer | Pointer to the ESerializer created for writing. |
| void eVision::EVectorModel::SetCenter | ( | const eVision::EPoint & | center | ) |
Sets the center of the model.
| center | The EPoint to set the center to. |
| void eVision::EVectorModel::SetScale | ( | float | scale | ) |
Sets the scale of the model.
| scale | The scale to set. |
| CppWrapperInternal::WrappedClass eVision::EVectorModel::wrappedClass_ |