HiddenLinesView Class

Class that computes silhouettes and hidden lines.
Public Class HiddenLinesView 
Inherits WorkUnit
This language is not supported or no code example is available.
public class HiddenLinesView : WorkUnit
This language is not supported or no code example is available.
Name Description
Public property ComputingCirclesText Gets or sets the progress bar text displayed while computing circles when executed asynchronously.
Public property ComputingSilhouettesText Gets or sets the progress bar text displayed while computing silhouettes when executed asynchronously.
Public property ComputingVisibilityText Gets or sets the progress bar text displayed while computing lines visibility when executed asynchronously.
Public property Edges Gets the 2D curves representing the view's edges.
Public property ExecutionTime Gets or sets the (last) work execution time in milliseconds. (inherited from WorkUnit).
Public property HiddenEdges Gets the 2D curves representing the view's hidden edges.
Public property HiddenSilhouettes Gets the 2D curves representing the view's hidden silhouettes.
Public property HiddenWires Gets the 2D curves representing the view's hidden wires.
Public property Log Gets the list of errors and warnings generated during execution. (inherited from WorkUnit).
Public property Pictures Gets the pictures generated.
Public property Regions Gets the meshes generated from the regions and hatches (if HiddenLinesViewSettings.FillRegions is true).
Public property RemovingOverlappingLinesText Gets or sets the progress bar text displayed while removing overlapped lines when executed asynchronously.
Public property Silhouettes Gets the 2D curves representing the view's silhouettes.
Public property Status Gets the WorkUnit status. (inherited from WorkUnit).
Public property TextStrings Gets the text's strings generated from the texts when HiddenLinesViewSettings.FillTexts is true and the text is readable and parallel to the screen.
Public property Texts Gets the meshes generated from dimensions arrows and texts (if HiddenLinesViewSettings.FillTexts is true, excluded readible text that are parallel to the screen).
Public property Wires Gets the 2D curves representing the view's wires.
Top
Methods
 
Name Description
Public method AppendToLog(string) Appends a message to the log. (inherited from WorkUnit).
Public method Cancelled(BackgroundWorker, DoWorkEventArgs) Checks if the user has requested cancellation of the background operation. (inherited from WorkUnit).
Public method DoWork() Executes the work synchronously.
Public method DoWork(BackgroundWorker, DoWorkEventArgs) Does the actual work allowing progress bar update and cancellation.
Public method Equals(Object) (inherited from Object).
Protected method FilterLinesToExport(HdlCurve[]) Filters the curves to export.
Protected method Finalize (inherited from Object).
Protected method GetComputedLines(out HdlCurve[], out HdlCurve[], out HdlCurve[], out HdlCurve[], out HdlCurve[], out HdlCurve[], out HdlPicture[], out HdlText[]) Gets the computed curves for export.
Public method GetHashCode (inherited from Object).
Public method GetType (inherited from Object).
Protected method MemberwiseClone (inherited from Object).
Protected method OrderAndPrintMetafile(Graphics, float, HdlCurve[], HdlCurve[], HdlCurve[], HdlCurve[], HdlCurve[], HdlCurve[], HdlText[], HdlPicture[])
Protected method PrintTriangles(Graphics, IList<SilhoWireAndTriangleData>)
Public method ResetProgress() Resets the progress. (inherited from WorkUnit).
Internal protected (Protected Friend) method ResetProgressParallel(int) Resets the progress bar for a parallel loop. (inherited from WorkUnit).
Public method ScaleLinesToWorld(float) Scales the computed lines to world coordinates and applies an extra scale factor.
Public method ScaleTrianglesToWorld(float) Scales the computed triangles to world coordinates and applies an extra scale factor.
Internal protected (Protected Friend) method StartContinuousAnimation(string, BackgroundWorker, params string[]) Start the animation for the continuous progress bar. (inherited from WorkUnit).
Internal protected (Protected Friend) method StopContinuousAnimation(BackgroundWorker) Stop the animation for the continuous progress bar. (inherited from WorkUnit).
Public method ToString (inherited from Object).
Public method UpdateProgress(double, double, string, BackgroundWorker, bool, params string[]) Updates the progress bar value. (inherited from WorkUnit).
Public method UpdateProgress(int, int, string, BackgroundWorker, bool, params string[]) Updates the progress bar value. (inherited from WorkUnit).
Public method UpdateProgressAndCheckCancelled(int, int, string, BackgroundWorker, DoWorkEventArgs, bool, params string[]) Updates the progress bar value and checks if the worker thread has been canceled. (inherited from WorkUnit).
Public method UpdateProgressAndCheckCancelledParallel(int, string, BackgroundWorker, DoWorkEventArgs, params string[]) Updates the progress bar value and checks if the worker thread has been canceled, for a parallel loop. (inherited from WorkUnit).
Internal protected (Protected Friend) method UpdateProgressParallel(double, string, BackgroundWorker, params string[]) Updates the progress bar value for a parallel loop. (inherited from WorkUnit).
Internal protected (Protected Friend) method UpdateProgressTo100(string, BackgroundWorker, params string[]) Set the progress bar to 100% and forces screen update. (inherited from WorkUnit).
Public method WorkCancelled(object) Called when the work is cancelled. (inherited from WorkUnit).
Public method WorkCompleted(object) Called when the work has completed. In the case you are modeling something, the sender parameter allows you to easily add the content to the entities collection. (inherited from WorkUnit).
Public method WorkFailed(object) Called when the work has failed. (inherited from WorkUnit).
Top
Events
 
Name Description
Public event ProgressChanged Occurs when the DoWork() is called synchronously and the progress has changed. (inherited from WorkUnit).
Top
Classes
 
Name Description
Public class HdlArc Defines an 2D Arc along with information about the entity it belongs to.
Public class HdlCurve Base class for curves resulting from HiddenLinesView computation.
Public class HdlLinearPath Defines a 2D piecewise linear curve along with information about the entity it belongs to.
Public class HdlMesh Defines a mesh along with information about the entity it belongs to.
Public class HdlPicture Defines a class representing picture with information about the entity it belongs to.
Public class HdlResult Base class for data resulting from HiddenLinesView computation.
Public class HdlText Defines a class representing text data along with information about the entity it belongs to.
Top
Fields
 
Name Description
Public field HdlViewSettings Class that holds the settings and the result of hidden lines computation
Internal protected (Protected Friend) field log (inherited from WorkUnit).
Protected field wireAndTriangleDatas
Top
Example
 
Usage example.
  var hdls = new HiddenLinesViewSettings(environment1.Viewports[0], environment1, 0.1);
 
  hdls.KeepHiddenSegments = true; // in order to keep the hidden segments
 
  var hdl = new HiddenLinesView(hdls);
  environment1.DoWork(hdl);
 
  var silho = hdl.GetSilhouettes();
  var hiddenSilho = hdl.GetHiddenSilhouettes();
 
  var edges = hdl.GetEdges();
  var hiddenEdges = hdl.GetHiddenEdges();
 
  var wires = hdl.GetWires();
  var hiddenWires = hdl.GetHiddenWires();
  					
This language is not supported or no code example is available.
  Dim hdls as HiddenLinesViewSettings = New HiddenLinesViewSettings(environment1.Viewports(0), environment1, 0.1)
  hdls.KeepHiddenSegments = True ' in order to keep the hidden segments
  Dim hdl = New HiddenLinesView(hdls)
  environment1.DoWork(hdl)
 
  Dim silho As IList(Of Segment2D) = hdl.GetSilhouettes()
  Dim hiddenSilho As IList(Of Segment2D) = hdl.GetHiddenSilhouettes()
 
  Dim edges As IList(Of Segment2D) = hdl.GetEdges()
  Dim hiddenEdges As IList(Of Segment2D) = hdl.GetHiddenEdges()
 
  Dim wires As IList(Of Segment2D) = hdl.GetWires()
  Dim hiddenWires As IList(Of Segment2D) = hdl.GetHiddenWires()
  					
This language is not supported or no code example is available.

.NET Framework

Supported in: 4.7.2

In this article

Definition