Rhino C++ API
8.13
|
#include <RhRdkContentEditorCustomButtonProvider.h>
Public Member Functions | |
virtual int | ButtonCount (void) const =0 |
virtual const wchar_t * | Caption (void) const =0 |
virtual CRhRdkCustomRenderFrameToolBar * | Clone (void) const =0 |
virtual bool | GetGrayBitmap (CRhinoDib &dibOut)=0 |
virtual bool | GetHotBitmap (CRhinoDib &dibOut)=0 |
virtual const wchar_t * | GetMessageString (UINT_PTR nID) const =0 |
virtual bool | GetNormalBitmap (CRhinoDib &dibOut)=0 |
virtual bool | GetPressedBitmap (CRhinoDib &dibOut)=0 |
virtual const wchar_t * | GetToolTipText (UINT_PTR nID) const =0 |
virtual UUID | InterfaceId (void) const final override |
virtual bool | IsSeparator (int iIndex) const =0 |
virtual bool | OnCommand (UINT_PTR nID)=0 |
virtual void | OnUpdateCommandUI (IRhRdkCommandUpdate &cu) const =0 |
virtual UUID | RenderEngineID (void) const =0 |
virtual void | SetFirstCommandId (UINT_PTR nID)=0 |
virtual void | SetRenderSessionId (const UUID &uuidRenderSession)=0 |
virtual RDK_DEPRECATED void | SetRenderWindow (class IRhRdkRenderWindow *) |
virtual UUID | ToolBarID (void) const =0 |
Public Member Functions inherited from CRhRdkExtension | |
CRhRdkExtension () | |
virtual | ~CRhRdkExtension () |
virtual UUID | PlugInId (void) const =0 |
bool | Unregister (void) |
Public Member Functions inherited from CRhRdkObject | |
CRhRdkObject () | |
virtual | ~CRhRdkObject () |
virtual void * | EVF (const wchar_t *wszFunc, void *pvData) |
void | operator delete (void *buf) |
void | operator delete[] (void *buf) |
void * | operator new (size_t size) |
void * | operator new[] (size_t size) |
Additional Inherited Members | |
Static Public Member Functions inherited from CRhRdkObject | |
static void | CheckMemory (void) |
static void | PopulateDebuggingInfo (void) |
This interface allows a client to add custom tool bars to the render frame.
The custom tool bar system is based on the MFC tool bars and uses the same bitmap format. The image for each button is 24 by 24 pixels, and the bitmap is a 'strip' of images. This strip is 24 pixels high and its width must be 24 times the number of buttons on the tool bar. This is the same as the value you return from ButtonCount() minus any separators. There can be up to four bitmaps for each tool bar, one for each of normal, hot, pressed and gray.
|
pure virtual |
Implement this method to return the number of buttons you need on the tool bar.
|
pure virtual |
Implement this method to return the tool bar's caption.
|
pure virtual |
Implement this method to return a clone of the tool bar. The tool bars that are registered by CRhRdkPlugIn::RegisterCustomPlugIns() are only prototypes. Each render frame clones the prototypes to create per-frame tool bars.
|
pure virtual |
Implement this method to return the tool bar's gray (disabled) bitmap. This is the bitmap of images used for buttons that are disabled (grayed-out).
dibOut | accepts the bitmap. The width of the bitmap must be 24 times the number of buttons. The height must be 24 pixels and the bit depth can be anything up to 24 bits. |
|
pure virtual |
Implement this method to return the tool bar's hot (hover) bitmap. This is the bitmap of images used for buttons that are pressed or being hovered over.
dibOut | accepts the bitmap. The width of the bitmap must be 24 times the number of buttons. The height must be 24 pixels and the bit depth can be anything up to 24 bits. |
|
pure virtual |
Implement this method to return a hint string for a command. This string is typically displayed on the status bar when the user hovers over a tool button. If you do not recognise the command id, return NULL.
nID | is the command id of the command for which a string is required. |
|
pure virtual |
Implement this method to return the tool bar's normal bitmap. This is the bitmap of images used for buttons that are not pressed or being hovered over.
dibOut | accepts the bitmap. The width of the bitmap must be 24 times the number of buttons. The height must be 24 pixels and the bit depth can be anything up to 24 bits. |
|
pure virtual |
Implement this method to return the tool bar's pressed bitmap. This is the bitmap of images used for buttons that are pressed.
dibOut | accepts the bitmap. The width of the bitmap must be 24 times the number of buttons. The height must be 24 pixels and the bit depth can be anything up to 24 bits. |
|
pure virtual |
Implement this method to return a tool tip string for a command. If you do not recognise the command id, return NULL.
nID | is the command id of the command for which a string is required. |
|
finaloverridevirtual |
Returns the unique interface id of this extension.
Implements CRhRdkExtension.
|
pure virtual |
Implement this method to specify if the tool button at a given index is a separator.
iIndex | is the index of the button which goes from zero to ButtonCount()-1. |
|
pure virtual |
Implement this method to execute a tool bar command.
nID | is the command id of the command to execute. |
|
pure virtual |
Implement this method to update a tool bar button.
|
pure virtual |
Implement this method to return your render engine's id.
|
pure virtual |
RDK assigns a range of contiguous command ids to the tool buttons and then notifies the tool bar of the first command id. Implement this method to store this first id. You can then use it as a base in OnCommand() and OnUpdateCommandUI().
nID | is the command id of the first command on this tool bar. |
|
pure virtual |
Implement this to store the render session id.
|
inlinevirtual |
OBSOLETE Never called.
|
pure virtual |
Implement this method to return the tool bar's id.