Rhino C++ API
8.17
|
#include <RhRdkPlugIn.h>
Public Types | |
enum | ePlugInType { rdkPlugIn = 0, rdkRenderPlugIn = 1, force32bit_pit = 0xFFFFFFFF } |
Static Public Member Functions | |
static UINT | QueryFocusMessageNumber (void) |
![]() | |
static void | CheckMemory (void) |
static void | PopulateDebuggingInfo (void) |
Protected Member Functions | |
CRhRdkPlugIn () | |
Use this base class if your RDK plug-in is a Rhino plug-in but not a Rhino render plug-in. This is the main connection between your plug-in and RDK. You must create a subclass and implement the pure virtual functions so that RDK can communicate with your plug-in.
RDK_SDK_VERSION define:
Note, this define concerns the actual version of the SDK headers, not the version of the executable, which will be updated with service release even if the SDK headers do not change.
The first number is the major version (which corresponds to the Rhino version the RDK is designed to run in. If you compile with (say) version 4.0.0 of the SDK, it will work with all executable RDKs with the same version number. The minor version (the second number) indicates minor non-breaking updates to the SDK. If you use any of the features in the minor update, however it will not link to lesser versions of the RDK.
To ensure that your plug-in works with all versions of the RDK for the platform in question, please ensure that the SDK you are using is the x.0.0 version.
The final number indicates beta/experimental version numbers. You should never use an SDK which has anything other than 0 in the final slot, except for beta releases of your product.
Use the CRhRdkPlugIn::RdkVersion function to determine the actual executable version and date of the RDK plug-in. This will correspond to the RDK_SDK_VERSION it was compiled with. You can also find the compile date of the RDK plug-in using CRhRdkPlugIn::RdkBuildDate().
|
virtual |
|
protected |
|
virtual |
This method is obsolete. Actions have been replaced with custom tasks.
|
virtual |
This method is obsolete. Actions have been replaced with custom tasks.
|
virtual |
This method is obsolete.
|
virtual |
virtual_su void CRhRdkPlugIn::AddCustomUISections | ( | IRhRdkExpandableContentUI & | ui | ) | const |
|
virtual |
Adds an extension to the RDK. If you override this method, please be sure to call the base class. The base class implementation calls RhRdkAddExtension(). The RDK takes ownership of the extension. If you are planning to unregister the extension before your plug-in is unloaded, you can store the pointer to make it possible to call CRhRdkExtension::Unregister(), but you should not use the pointer for any other purpose.
|
virtual |
This is called when merging content into a document during import. If your plug-in is using content, you should override this method to change your record of an instance id.
|
virtual |
This method is obsolete and is never called.
|
virtual |
Reimplemented in CRhRdkRenderPlugIn.
|
overridevirtual |
Emergency virtual function for future expansion.
Reimplemented from CRhRdkObject.
Reimplemented in CRhRdkRenderPlugIn.
Optionally implement this method to satisfy license requests from RDK service providers, for example custom render mesh providers.
|
virtual |
Optionally override this method to get a specific parameter in the plug-in.
|
virtual |
Optionally override this method to return an icon for the plug-in.
|
virtual |
Initializes the plug-in. Override this method to perform additional initialization. please be sure to call the base class.
Reimplemented in CRhRdkRenderPlugIn.
|
virtual |
Called in response to clicking the Browse button on Rhino's Properties / Material / Plug-in page or the Layer Material dialog. The default implementation returns false. Override this method to provide an assignment procedure.
|
virtual |
Called in response to clicking the Edit button on Rhino's Properties / Material / Plug-in page or the Layer Material dialog. The default implementation returns false. Override this method to provide an assignment procedure.
|
virtual |
Override this function to tell RDK not to fiddle with the display when displaying the RDK sun. Generally you will do this if you are developing a display conduit and want to deal with the RDK sun yourself.
|
pure virtual |
You must implement this method to return the identifier of your RDK plug-in.
|
virtual |
You must implement this method to fill in the version numbers of the RDK SDK the plug-in was compiled with. This function should be implemented as follows:
|
inlinevirtual |
Reimplemented in CRhRdkRenderPlugIn.
|
static |
If your UI has a control that doesn't care about where the focus is, have the control handle this message and return 1. RDK will then periodically move the focus from your control to Rhino's command line. Example usage:
|
virtual |
This method is deprecated in favor of RegisterExtensions().
|
virtual |
This method is deprecated in favor of RegisterExtensions().
|
virtual |
This method is deprecated in favor of RegisterExtensions().
|
virtual |
|
virtual |
This method is deprecated in favor of RegisterExtensions().
|
virtual |
Optionally override this method to register extensions whose interface is defined by a UUID. Some of these extension types have interface files which are supplied with the RDK SDK (e.g., content factories) and some do not. The latter case is generally reserved for features which are added to the RDK after the initial SDK release and allows us to add extensions without breaking the SDK. To add these extensions your implementation should call AddExtension().
|
virtual |
This method is deprecated in favor of RegisterExtensions().
virtual_su bool CRhRdkPlugIn::RemoveExtension | ( | CRhRdkExtension * | pExtension | ) | const |
|
virtual |
This is called when merging content into a document during import. If your plug-in is using content, you should override this method to report the content being used.
|
pure virtual |
You must implement this method to return a reference to your CRhinoPlugIn derived class.
|
virtual |
Optionally override this method to set a specific parameter in the plug-in. You can use this system to change parameters programatically if these methods are implemented for that plug-in. If you implement this method you must return true. The default implementation is a no-op that returns false.
|
virtual |
|
virtual |
Uninitializes the plug-in to perform clean-up when the plug-in is unloaded. Override this method to perform additional clean-up tasks. please be sure to call the base class.
|
virtual |
This method is obsolete. Actions have been replaced with custom tasks.