Represents a EShape hierarchy with a single root. This hierarchy can be retrieved from files in different file formats. More...


Public Member Functions | |
| EVectorModel () | |
| Constructs an EVectorModel context. | |
| EVectorModel (eVision.EVectorModel other) | |
| Constructs an EVectorModel context. | |
| void | GetVectorModelExtremas (ref float xmin, ref float ymin, ref float xmax, ref float ymax, bool inSensorCoordinates) |
| Retrieves the coordinate extrema of the vector model. | |
| void | GetVectorModelExtremas (ref float xmin, ref float ymin, ref float xmax, ref 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 (int drawWindowWidth, int 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 (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 (string filePath) |
| Saves a Shape.The given ESerializer must have been created for writing. | |
| void | Draw (eVision.EDrawAdapter graphicContext) |
| Draws a graphical representation of the hierarchy. | |
| void | Draw (IntPtr graphicContext) |
| Draws a graphical representation of the hierarchy. | |
| void | Draw (IntPtr graphicContext, eVision.ERGBColor color) |
| Draws a graphical representation of the hierarchy. | |
| void | DrawWithCurrentPen (IntPtr graphicContext) |
| Draws a graphical representation of the hierarchy. | |
| void | LoadDXF (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 (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 (string fileName, float scale, 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. | |
| void | Draw (System.Drawing.Graphics graphicContext) |
| Draws a graphical representation of the hierarchy. | |
| void | Draw (System.Drawing.Graphics graphicContext, eVision.ERGBColor color) |
| Draws a graphical representation of the hierarchy. | |
Properties | |
| eVision.Legacy.EFrameShape | Root [get] |
| Gets the root of the hierarchy. | |
| float | Scale [get, set] |
| Gets the scale of the model. | |
| eVision.EPoint | Center [get, set] |
| Gets the center of the model. | |
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 | ( | eVision.EVectorModel | other | ) |
Constructs an EVectorModel context.
| other | other EVectorModel to copy into this one. |
| void eVision.EVectorModel.DisableDrawArea | ( | ) |
Disables the custom drawing of the EVectorModel with a specific zoom and pan.
| void eVision.EVectorModel.Draw | ( | eVision.EDrawAdapter | graphicContext | ) |
Draws a graphical representation of the hierarchy.
| graphicContext | Handle of the device context on which to draw. |
| void eVision.EVectorModel.Draw | ( | IntPtr | graphicContext | ) |
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 | ( | IntPtr | graphicContext, |
| eVision.ERGBColor | color ) |
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.Draw | ( | System.Drawing.Graphics | graphicContext | ) |
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 | ( | System.Drawing.Graphics | graphicContext, |
| eVision.ERGBColor | color ) |
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 | ( | IntPtr | graphicContext | ) |
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 | ( | int | drawWindowWidth, |
| int | 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 |
| 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 | ( | ref float | xmin, |
| ref float | ymin, | ||
| ref float | xmax, | ||
| ref 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 | ( | ref float | xmin, |
| ref float | ymin, | ||
| ref float | xmax, | ||
| ref 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 | ( | 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.Load | ( | string | filePath | ) |
Loads a Shape.The given ESerializer must have been created for reading.
| filePath | The file path. |
| void eVision.EVectorModel.LoadDXF | ( | 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 | ( | 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 | ( | string | fileName, |
| float | scale, | ||
| 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). |
| 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.Save | ( | string | filePath | ) |
Saves a Shape.The given ESerializer must have been created for writing.
| filePath | The file path. |
|
getset |
Gets the center of the model.
|
get |
Gets the root of the hierarchy.
|
getset |
Gets the scale of the model.