Represents a eVision.Legacy.EShape hierarchy with a single root. More...
Public Member Functions | |
| None | __init__ (self) |
| Constructs an eVision.EVectorModel context. | |
| None | __init__ (self, eVision.EVectorModel other) |
| Constructs an eVision.EVectorModel context. | |
| None | GetVectorModelExtremas (self, eVision.EFloatRange xRange, eVision.EFloatRange yRange, bool inSensorCoordinates) |
| Retrieves the coordinate extrema of the vector model. | |
| None | GetVectorModelExtremas (self, eVision.EFloatRange xRange, eVision.EFloatRange yRange) |
| Retrieves the coordinate extrema of the vector model. | |
| None | EnableDrawArea (self, int drawWindowWidth, int drawWindowHeight) |
| Enables the drawing of the eVision.EVectorModel with a specific zoom and pan. | |
| None | DisableDrawArea (self) |
| Disables the custom drawing of the eVision.EVectorModel with a specific zoom and pan. | |
| None | Load (self, str filePath) |
| Loads a Shape.The given eVision.ESerializer must have been created for reading. | |
| None | Load (self, eVision.ESerializer|None serializer) |
| Loads a Shape.The given eVision.ESerializer must have been created for reading. | |
| None | Save (self, eVision.ESerializer|None serializer) |
| Saves a Shape.The given eVision.ESerializer must have been created for writing. | |
| None | Save (self, str filePath) |
| Saves a Shape.The given eVision.ESerializer must have been created for writing. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext) |
| Draws a graphical representation of the hierarchy. | |
| None | LoadDXF (self, str fileName, float scale) |
| Loads an eVision.EVectorModel from an ascii DXF file. | |
| None | LoadDXF (self, str fileName) |
| Loads an eVision.EVectorModel from an ascii DXF file. | |
| None | LoadDXF (self, str fileName, float scale, eVision.EPoint origin) |
| Loads an eVision.EVectorModel from an ascii DXF file. | |
| eVision.Legacy.EFrameShape | Root (self) |
| Gets the root of the hierarchy. | |
| float | Scale (self) |
| Gets the scale of the model. | |
| Scale (self, float value) | |
| Gets the scale of the model. | |
| eVision.EPoint | Center (self) |
| Gets the center of the model. | |
| Center (self, eVision.EPoint value) | |
| Gets the center of the model. | |
Represents a eVision.Legacy.EShape hierarchy with a single root.
This hierarchy can be retrieved from files in different file formats.
Remarks:
License(s): BasicTypes
| None eVision.EVectorModel.__init__ | ( | self | ) |
Constructs an eVision.EVectorModel context.
| None eVision.EVectorModel.__init__ | ( | self, | |
| eVision.EVectorModel | other ) |
Constructs an eVision.EVectorModel context.
| other | other eVision.EVectorModel to copy into this one. |
| eVision.EPoint eVision.EVectorModel.Center | ( | self | ) |
Gets the center of the model.
| eVision.EVectorModel.Center | ( | self, | |
| eVision.EPoint | value ) |
Gets the center of the model.
| None eVision.EVectorModel.DisableDrawArea | ( | self | ) |
Disables the custom drawing of the eVision.EVectorModel with a specific zoom and pan.
| None eVision.EVectorModel.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext ) |
Draws a graphical representation of the hierarchy.
| graphicContext | Handle of the device context on which to draw. |
| None eVision.EVectorModel.EnableDrawArea | ( | self, | |
| int | drawWindowWidth, | ||
| int | drawWindowHeight ) |
Enables the drawing of the eVision.EVectorModel with a specific zoom and pan.
Default: false
| drawWindowWidth | The width of the window that the eVision.EVectorModel is drawn into |
| drawWindowHeight | The height of the window that the eVision.EVectorModel is drawn into |
| None eVision.EVectorModel.GetVectorModelExtremas | ( | self, | |
| eVision.EFloatRange | xRange, | ||
| eVision.EFloatRange | yRange ) |
Retrieves the coordinate extrema of the vector model.
Remarks:
An exception is thrown if the hierarchy is empty
| xRange | The range along the X axis. |
| yRange | The range along the Y axis. |
| None eVision.EVectorModel.GetVectorModelExtremas | ( | self, | |
| eVision.EFloatRange | xRange, | ||
| eVision.EFloatRange | yRange, | ||
| bool | inSensorCoordinates ) |
Retrieves the coordinate extrema of the vector model.
Remarks:
An exception is thrown if the hierarchy is empty
| 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 |
| None eVision.EVectorModel.Load | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Loads a Shape.The given eVision.ESerializer must have been created for reading.
| serializer | Pointer to the eVision.ESerializer created for reading. |
| None eVision.EVectorModel.Load | ( | self, | |
| str | filePath ) |
Loads a Shape.The given eVision.ESerializer must have been created for reading.
| filePath | The file path. |
| None eVision.EVectorModel.LoadDXF | ( | self, | |
| str | fileName ) |
Loads an eVision.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. |
| None eVision.EVectorModel.LoadDXF | ( | self, | |
| str | fileName, | ||
| float | scale ) |
Loads an eVision.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. |
| None eVision.EVectorModel.LoadDXF | ( | self, | |
| str | fileName, | ||
| float | scale, | ||
| eVision.EPoint | origin ) |
Loads an eVision.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.Legacy.EFrameShape eVision.EVectorModel.Root | ( | self | ) |
Gets the root of the hierarchy.
| None eVision.EVectorModel.Save | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Saves a Shape.The given eVision.ESerializer must have been created for writing.
| serializer | Pointer to the eVision.ESerializer created for writing. |
| None eVision.EVectorModel.Save | ( | self, | |
| str | filePath ) |
Saves a Shape.The given eVision.ESerializer must have been created for writing.
| filePath | The file path. |
| float eVision.EVectorModel.Scale | ( | self | ) |
Gets the scale of the model.
| eVision.EVectorModel.Scale | ( | self, | |
| float | value ) |
Gets the scale of the model.