eVision .NET API
Loading...
Searching...
No Matches
eVision.EVectorModel Class Reference

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

Inheritance diagram for eVision.EVectorModel:
Collaboration diagram for eVision.EVectorModel:

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.

Detailed Description

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

License(s): BasicTypes

Constructor & Destructor Documentation

◆ EVectorModel() [1/2]

eVision.EVectorModel.EVectorModel ( )

Constructs an EVectorModel context.

◆ EVectorModel() [2/2]

eVision.EVectorModel.EVectorModel ( eVision.EVectorModel other)

Constructs an EVectorModel context.

Parameters
otherother EVectorModel to copy into this one.

Member Function Documentation

◆ DisableDrawArea()

void eVision.EVectorModel.DisableDrawArea ( )

Disables the custom drawing of the EVectorModel with a specific zoom and pan.

◆ Draw() [1/5]

void eVision.EVectorModel.Draw ( eVision.EDrawAdapter graphicContext)

Draws a graphical representation of the hierarchy.

Parameters
graphicContextHandle of the device context on which to draw.

◆ Draw() [2/5]

void eVision.EVectorModel.Draw ( IntPtr graphicContext)

Draws a graphical representation of the hierarchy.

Parameters
graphicContextHandle of the device context on which to draw.
Deprecated

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.

◆ Draw() [3/5]

void eVision.EVectorModel.Draw ( IntPtr graphicContext,
eVision.ERGBColor color )

Draws a graphical representation of the hierarchy.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color to draw with.
Deprecated

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.

◆ Draw() [4/5]

void eVision.EVectorModel.Draw ( System.Drawing.Graphics graphicContext)

Draws a graphical representation of the hierarchy.

Parameters
graphicContextHandle of the device context on which to draw.
Deprecated

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.

◆ Draw() [5/5]

void eVision.EVectorModel.Draw ( System.Drawing.Graphics graphicContext,
eVision.ERGBColor color )

Draws a graphical representation of the hierarchy.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color to draw with.
Deprecated

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.

◆ DrawWithCurrentPen()

void eVision.EVectorModel.DrawWithCurrentPen ( IntPtr graphicContext)

Draws a graphical representation of the hierarchy.

Parameters
graphicContextHandle of the device context on which to draw.
Deprecated

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.

◆ EnableDrawArea()

void eVision.EVectorModel.EnableDrawArea ( int drawWindowWidth,
int drawWindowHeight )

Enables the drawing of the EVectorModel with a specific zoom and pan. Default: false.

Parameters
drawWindowWidthThe width of the window that the EVectorModel is drawn into
drawWindowHeightThe height of the window that the EVectorModel is drawn into

◆ GetVectorModelExtremas() [1/4]

void eVision.EVectorModel.GetVectorModelExtremas ( eVision.EFloatRange xRange,
eVision.EFloatRange yRange )

Retrieves the coordinate extrema of the vector model.

Parameters
xRangeThe range along the X axis.
yRangeThe range along the Y axis.

An exception is thrown if the hierarchy is empty

◆ GetVectorModelExtremas() [2/4]

void eVision.EVectorModel.GetVectorModelExtremas ( eVision.EFloatRange xRange,
eVision.EFloatRange yRange,
bool inSensorCoordinates )

Retrieves the coordinate extrema of the vector model.

Parameters
xRangeThe range along the X axis.
yRangeThe range along the Y axis.
inSensorCoordinatesSpecifies whether the extrema are retrieved in sensor coordinates. Default: false

An exception is thrown if the hierarchy is empty

◆ GetVectorModelExtremas() [3/4]

void eVision.EVectorModel.GetVectorModelExtremas ( ref float xmin,
ref float ymin,
ref float xmax,
ref float ymax )

Retrieves the coordinate extrema of the vector model.

Parameters
xminThe X minimum of EVectorModel.
yminThe Y minimum of EVectorModel.
xmaxThe X maximum of EVectorModel.
ymaxThe Y maximum of EVectorModel.

An exception is thrown if the hierarchy is empty

Deprecated
Deprecated in version 24.6. Scheduled to be removed in version 27.6.

◆ GetVectorModelExtremas() [4/4]

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.

Parameters
xminThe X minimum of EVectorModel.
yminThe Y minimum of EVectorModel.
xmaxThe X maximum of EVectorModel.
ymaxThe Y maximum of EVectorModel.
inSensorCoordinatesSpecifies whether the extrema are retrieved in sensor coordinates. Default: false

An exception is thrown if the hierarchy is empty

Deprecated
Deprecated in version 24.6. Scheduled to be removed in version 27.6.

◆ Load() [1/2]

void eVision.EVectorModel.Load ( eVision.ESerializer serializer)

Loads a Shape.The given ESerializer must have been created for reading.

Parameters
serializerPointer to the ESerializer created for reading.

◆ Load() [2/2]

void eVision.EVectorModel.Load ( string filePath)

Loads a Shape.The given ESerializer must have been created for reading.

Parameters
filePathThe file path.

◆ LoadDXF() [1/3]

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.

Parameters
fileNameThe name of the dxf file.

◆ LoadDXF() [2/3]

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.

Parameters
fileNameThe name of the dxf file.
scaleThe scale of the vector model, defaults to 1.

◆ LoadDXF() [3/3]

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.

Parameters
fileNameThe name of the dxf file.
scaleThe scale of the vector model, defaults to 1.
originThe 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).

◆ Save() [1/2]

void eVision.EVectorModel.Save ( eVision.ESerializer serializer)

Saves a Shape.The given ESerializer must have been created for writing.

Parameters
serializerPointer to the ESerializer created for writing.

◆ Save() [2/2]

void eVision.EVectorModel.Save ( string filePath)

Saves a Shape.The given ESerializer must have been created for writing.

Parameters
filePathThe file path.

Property Documentation

◆ Center

eVision.EPoint eVision.EVectorModel.Center
getset

Gets the center of the model.

◆ Root

eVision.Legacy.EFrameShape eVision.EVectorModel.Root
get

Gets the root of the hierarchy.

◆ Scale

float eVision.EVectorModel.Scale
getset

Gets the scale of the model.