Thus, you should only be manipulating your own objects. There is also no active document or active // view at this time.
By this time, // Rhino's mainframe window has been destroyed, and some of the SDK // managers have been deleted. // See Also: // CWinApp::SaveAllSettings // CRhinoPlugIn::OnLoadPlugIn() virtual void OnSaveAllSettings ( ) // OBSOLETE - DO NOT USE //_declspec(deprecated) virtual BOOL CanUnLoad() //- // Description: // Called one time when plug-in is about to be unloaded. At this point, the Rhino SDK should still be completely // accessible. // Parameters: // nID Dialog ID // lpsID Dialog ID // // Returns: // true = Allow dialog font to be scaled // false = Do not allow dialog font to be scaled // // See Also: // RhinoUiScaleLocalizedDialogs() // virtual bool ScaleDialogFont ( UINT nID, LPCTSTR lpsID ) //- // Description: // The Rhino plug-in manager will call this method when Rhino is preparing // to close. The Rhino plug-in manager calls // RhinoUiScaleLocalizedDialogs() using this plug-ins instance just prior to // calling OnLoadPlugIn(). // Parameters: // msg Error message to display // // Returns: // true = Display custom message // false = Display system message // // See Also: // CRhinoPlugIn::OnLoadPlugIn() // virtual bool OnLoadPlugInErrorString ( ON_wString & msg ) //- //- // Description: // Called by RhinoUiScaleLocalizedDialogs() when scaling dialog fonts for dialogs // included in specified module. If this method sets message to a valid string and returns true then the // plug-in on load error dialog will display your custom message. virtual int OnLoadPlugIn ( ) //- // Description: // If OnLoadPlugIn() returns 0 the Rhino plug-in manager will call this method. It is not necessary to call // CPlugIn::OnLoadPlugIn() from your derived class. If you need to do any document initialization/synchronization then // override this function and do it here. Because the default document already exists // CRhinoEventWatcher::On?Document() functions are not called for the default // document. // Remarks: // Plug-ins are not loaded until after Rhino is started and a default document // is created. Note: OnUnloadPlugIn will not be called. -1 = Unable to initialize, unload the plug-in and do not display load error dialog. 0 = Unable to initialize, unload the plug-in and display load error dialog. // Returns: // 1 = Initialization succeeded, leave the plug-in loaded. //- // Description: // Called one time when a plug-in is loaded. Plugin_type PlugInType ( ) const = 0 // // // Description: The Following are USUALLY overridden, it is not necessary to call // the base class version of these functions. If it does not cast correctly then the plug-in will not be allowed to // load. // Remarks: // Rhino will attempt to cast the one and only plug-in derived object when loading // a plug-in. // Example: // // extern "C" BOOL PASCAL EXPORT ExportedFunction() // //- // Description: // Identifies the type of plug-in.
// Because a plug-in DLL is dynamically linked against the MFC // DLLs, any functions exported from this DLL which // call into MFC must have the AFX_MANAGE_STATE macro // added at the very beginning of the function. Never // derive directly from this class use one of the following: // CRhinoUtilityPlugIn // CRhinoFileImportPlugIn // CRhinoFileExportPlugIn // CRhinoDigitizerPlugIn // CRhinoRenderPlugIn // CRhinoDisplayPlugIn // // Remarks: // A plug-in is a DLL and MUST be dynamically linked with MFC // DLLs. */ # pragma once # ifndef _AFXWIN_H_ # error include 'stdafx.h' before including this file for PCH # endif class CRhinoCommand class CRhinoDoc class CRhinoProfileContext class CRhinoOptionsDialogPage # include "rhinoSdkFileOptions.h" # include "rhinoSdkSystemDialogOptions.h" // // class CRhinoPlugIn // //ĝescription: // This is the base class for every Rhino plug-in type. For complete Rhino SDK copyright information see. MERCHANTABILITY ARE HEREBY DISCLAIMED. ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF
THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. Rhinoceros is a registered trademark of Robert McNeel & Associates. Copyright (c) 1993-2007 Robert McNeel & Associates.