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 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 ExecutionTime Gets the (last) work execution time in milliseconds. (inherited from WorkUnit).
Top
Methods
 
Name Description
Public method AddIfDifferent(Point2D, double, Interval, bool, IList<Tuple<Point2DDoubleIntervalBoolean>>)
Public method AddIfDifferent(Point2D, Point2D, IList<Segment2D>)
Internal protected (Protected Friend) method Cancelled(BackgroundWorker, DoWorkEventArgs) Checks if the user has requested cancellation of the background operation. (inherited from WorkUnit).
Internal protected (Protected Friend) method DoWork(BackgroundWorker, DoWorkEventArgs) Does the actual work allowing progress bar update and cancellation.
Public method DoWork() Executes the work synchronously.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetCenterlines() The list of centerlines.
Public method GetEdges() The list of 2D segments representing the view's edges.
Public method GetGhostCircles() The list of ghost circles.
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method GetHiddenEdges() The list of 2D segments representing the view's hidden edges.
Public method GetHiddenSilhouettes() The list of 2D segments representing the view's hidden silhouettes.
Public method GetHiddenWires() The list of 2D segments representing the view's hidden wires.
Public method GetRegions() Gets the meshes generated from the regions (if HiddenLinesViewSettings.FillRegions is true).
Public method GetSilhouettes() The list of 2D segments representing the view's silhouettes.
Public method GetTexts() Gets the meshes generated from the texts and dimensions arrows (if HiddenLinesViewSettings.FillTexts is true).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method GetWires() The list of 2D segments representing the view's wires.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Protected method PrintTriangles(Graphics)
Internal protected (Protected Friend) method ResetProgressParallel() Resets the progress bar for a parallel loop. (inherited from WorkUnit).
Internal protected (Protected Friend) method StartContinuousAnimation(string, BackgroundWorker) 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 Returns a string that represents the current object. (inherited from Object).
Internal protected (Protected Friend) method UpdateProgress(double, double, string, BackgroundWorker, bool) Updates the progress bar value.
Internal protected (Protected Friend) method UpdateProgress(int, int, string, BackgroundWorker, bool) Updates the progress bar value.
Internal protected (Protected Friend) method UpdateProgressAndCheckCancelled(int, int, string, BackgroundWorker, DoWorkEventArgs, bool) Updates the progress bar value and checks if the worker thread has been canceled. (inherited from WorkUnit).
Internal protected (Protected Friend) method UpdateProgressAndCheckCancelledParallel(int, string, BackgroundWorker, DoWorkEventArgs) 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) Updates the progress bar value for a parallel loop. (inherited from WorkUnit).
Internal protected (Protected Friend) method UpdateProgressTo100(string, BackgroundWorker) Set the progress bar to 100% and forces screen update. (inherited from WorkUnit).
Internal protected (Protected Friend) method WorkCancelled(Environment) Called when the work is cancelled. (inherited from WorkUnit).
Internal protected (Protected Friend) method WorkCompleted(Environment) Called when the work has completed. In the case you are modeling something, the environment parameter allows you to easily add the model to the entities collection. (inherited from WorkUnit).
Internal protected (Protected Friend) method WorkFailed(Environment) 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 Segment Class that stores a Segment2D along with the entity it belongs to.
Top
Fields
 
Name Description
Public field HdlViewSettings Class that holds the settings and the result of hidden lines computation
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.5, 4.6, 4.7

In this article

Definition