HiddenLinesViewOnFile Class

Class that saves a vectorial image of the current scene of the active viewport on disk in EMF format.
Public Class HiddenLinesViewOnFile 
Inherits HiddenLinesViewOnClipboard
This language is not supported or no code example is available.
public class HiddenLinesViewOnFile : HiddenLinesViewOnClipboard
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. (inherited from HiddenLinesView).
Public property ComputingSilhouettesText Gets or sets the progress bar text displayed while computing silhouettes when executed asynchronously. (inherited from HiddenLinesView).
Public property ComputingVisibilityText Gets or sets the progress bar text displayed while computing lines visibility when executed asynchronously. (inherited from HiddenLinesView).
Public property Edges Gets the 2D curves representing the view's edges. (inherited from HiddenLinesView).
Public property ExecutionTime Gets the (last) work execution time in milliseconds. (inherited from WorkUnit).
Public property HiddenEdges Gets the 2D curves representing the view's hidden edges. (inherited from HiddenLinesView).
Public property HiddenSilhouettes Gets the 2D curves representing the view's hidden silhouettes. (inherited from HiddenLinesView).
Public property HiddenWires Gets the 2D curves representing the view's hidden wires. (inherited from HiddenLinesView).
Public property Log Gets the list of errors and warnings generated during execution. (inherited from WorkUnit).
Public property Pictures Gets the pictures generated. (inherited from HiddenLinesView).
Public property Regions Gets the meshes generated from the regions and hatches (if HiddenLinesViewSettings.FillRegions is true). (inherited from HiddenLinesView).
Public property RemovingOverlappingLinesText Gets or sets the progress bar text displayed while removing overlapped lines when executed asynchronously. (inherited from HiddenLinesView).
Public property Silhouettes Gets the 2D curves representing the view's silhouettes. (inherited from HiddenLinesView).
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. (inherited from HiddenLinesView).
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). (inherited from HiddenLinesView).
Public property Wires Gets the 2D curves representing the view's wires. (inherited from HiddenLinesView).
Top
Methods
 
Name Description
Internal protected (Protected Friend) method Cancelled(BackgroundWorker, DoWorkEventArgs) Checks if the user has requested cancellation of the background operation. (inherited from WorkUnit).
Public method Static DeleteEnhMetaFile(int) (inherited from HiddenLinesViewOnClipboard).
Internal protected (Protected Friend) method DoWork(BackgroundWorker, DoWorkEventArgs) Does the actual work allowing progress bar update and cancellation. (inherited from HiddenLinesView).
Public method DoWork() Executes the work synchronously. (inherited from HiddenLinesView).
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method FilterLinesToExport(HdlCurve[]) Filters the curves to export. (inherited from HiddenLinesView).
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).
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. (inherited from HiddenLinesView).
Public method Static GetEnhMetaFileBits(int, int, byte[]) (inherited from HiddenLinesViewOnClipboard).
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Protected method OrderAndPrintMetafile(Graphics, float, HdlCurve[], HdlCurve[], HdlCurve[], HdlCurve[], HdlCurve[], HdlCurve[], HdlText[], HdlPicture[]) (inherited from HiddenLinesView).
Protected method PrintTriangles(Graphics, IList<SilhoWireAndTriangleData>) (inherited from HiddenLinesView).
Internal protected (Protected Friend) method ResetProgressParallel(int) Resets the progress bar for a parallel loop. (inherited from WorkUnit).
Public method Static SaveAsEmf(Metafile, string) (inherited from HiddenLinesViewOnClipboard).
Internal protected (Protected Friend) method SaveFile(Environment, string) (inherited from HiddenLinesViewOnClipboard).
Public method ScaleLinesToWorld(float) Scales the computed lines to world coordinates and applies an extra scale factor. (inherited from HiddenLinesView).
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 Returns a string that represents the current object. (inherited from Object).
Internal protected (Protected Friend) method UpdateProgress(double, double, string, BackgroundWorker, bool, params string[]) Updates the progress bar value. (inherited from WorkUnit).
Internal protected (Protected Friend) method UpdateProgress(int, int, string, BackgroundWorker, bool, params string[]) Updates the progress bar value. (inherited from WorkUnit).
Internal protected (Protected Friend) 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).
Internal protected (Protected Friend) 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).
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 HiddenLinesViewOnClipboard).
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
Fields
 
Name Description
Public field FileName The name of the file to save. (inherited from HiddenLinesViewOnClipboard).
Public field HdlViewSettings Class that holds the settings and the result of hidden lines computation (inherited from HiddenLinesView).
Public field Scale The scale of the drawing (inherited from HiddenLinesViewOnClipboard).
Internal protected (Protected Friend) field log (inherited from WorkUnit).
Protected field wireAndTriangleDatas (inherited from HiddenLinesView).
Top
Example
 
The following code fragment demonstrates how to save a vectorial image of the current scene of the active viewport on disk.
            HiddenLinesViewOnFile hdlView = new HiddenLinesViewOnFile(new HiddenLinesViewSettings(viewport1), fileName);
            viewport1.StartWork(hdlView);
     					
This language is not supported or no code example is available.
            Dim hdlView As New HiddenLinesViewOnFile(new HiddenLinesViewSettings(Viewport1), FileName)
            Viewport1.StartWork(hdlView)
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 4.8

In this article

Definition