C# 클래스 SampleCsExportMesh.SampleCsExportMeshPlugIn

Every Rhino.NET Plug-In must have one and only one MRhinoPlugIn derived class. DO NOT create an instance of this class. It is the responsibility of Rhino.NET to create an instance of this class and register it with Rhino.
상속: RMA.Rhino.MRhinoFileExportPlugIn
파일 보기 프로젝트 열기: mcneel/Rhino4Samples_DotNet

공개 메소드들

메소드 설명
AddFileType ( ArrayMRhinoFileType &extensions, IRhinoFileWriteOptions &opts ) : void

When Rhino gets ready to display either the save or export file dialog, it calls AddFileType() once for each loaded file export plug-in.

OnLoadPlugIn ( ) : int

Called after the plug-in is loaded and the constructor has been run. This is a good place to perform any significant initialization, license checking, and so on. This function must return 1 for the plug-in to continue to load.

OnUnloadPlugIn ( ) : void

Called when the plug-in is about to be unloaded. After this function is called, the plug-in will be disposed.

PlugInID ( ) : System.Guid

Rhino tracks plug-ins by their unique ID. Every plug-in must have a unique id. The Guid created by the project wizard is unique. You can create more Guids using the "Create Guid" tool in the Tools menu.

PlugInName ( ) : string
PlugInVersion ( ) : string
SampleCsExportMeshPlugIn ( ) : System

Public constructor

WriteFile ( string filename, int index, MRhinoDoc &doc, IRhinoFileWriteOptions &options ) : int

Rhino calls WriteFile() to write document geometry to an external file.

메소드 상세

AddFileType() 공개 메소드

When Rhino gets ready to display either the save or export file dialog, it calls AddFileType() once for each loaded file export plug-in.
public AddFileType ( ArrayMRhinoFileType &extensions, IRhinoFileWriteOptions &opts ) : void
extensions ArrayMRhinoFileType
opts IRhinoFileWriteOptions
리턴 void

OnLoadPlugIn() 공개 메소드

Called after the plug-in is loaded and the constructor has been run. This is a good place to perform any significant initialization, license checking, and so on. This function must return 1 for the plug-in to continue to load.
public OnLoadPlugIn ( ) : int
리턴 int

OnUnloadPlugIn() 공개 메소드

Called when the plug-in is about to be unloaded. After this function is called, the plug-in will be disposed.
public OnUnloadPlugIn ( ) : void
리턴 void

PlugInID() 공개 메소드

Rhino tracks plug-ins by their unique ID. Every plug-in must have a unique id. The Guid created by the project wizard is unique. You can create more Guids using the "Create Guid" tool in the Tools menu.
public PlugInID ( ) : System.Guid
리턴 System.Guid

PlugInName() 공개 메소드

public PlugInName ( ) : string
리턴 string

PlugInVersion() 공개 메소드

public PlugInVersion ( ) : string
리턴 string

SampleCsExportMeshPlugIn() 공개 메소드

Public constructor
public SampleCsExportMeshPlugIn ( ) : System
리턴 System

WriteFile() 공개 메소드

Rhino calls WriteFile() to write document geometry to an external file.
public WriteFile ( string filename, int index, MRhinoDoc &doc, IRhinoFileWriteOptions &options ) : int
filename string
index int
doc MRhinoDoc
options IRhinoFileWriteOptions
리턴 int