| Rhino C++ API
    8.24
    | 
#include <RhRdkNewContentCtrl.h>
 
  
| Classes | |
| class | IAssignBy | 
| Public Types | |
| enum | AssignBys : unsigned int { AssignBys::Unset, AssignBys::Layer, AssignBys::Parent, AssignBys::Object, AssignBys::Varies, AssignBys::PlugIn } | 
| enum | Styles : unsigned int { Styles::Material, Styles::Environment, Styles::Texture, Styles::MaterialIPE, Styles::MaterialAssignByIPE } | 
| Public Member Functions | |
| virtual bool | CloseDropDown (void)=0 | 
| virtual ON_wString | DebugText (void) const =0 | 
| virtual AssignBys | GetAssignBy (void) const =0 | 
| virtual bool | GetForcedVaries (void) const =0 | 
| virtual bool | GetSelection (OUT CRhRdkContentArray &aContent) const =0 | 
| virtual bool | GetSelection (OUT CRhRdkInstanceIdArray &aInstance) const =0 | 
| virtual bool | IsDropDownOpen (void) const =0 | 
| virtual CRhRdkContent::Kinds | Kind (void) const =0 | 
| virtual bool | OpenContextMenu (CPoint point)=0 | 
| virtual bool | OpenDropDown (void)=0 | 
| virtual bool | SetAssignBy (AssignBys a)=0 | 
| virtual void | SetDebugText (const wchar_t *wsz)=0 | 
| virtual void | SetForcedVaries (bool b=true)=0 | 
| virtual bool | SetSelection (const CRhRdkContentArray &aContent)=0 | 
| virtual bool | SetSelection (const CRhRdkInstanceIdArray &aInstance)=0 | 
| virtual void | SetShowContextMenu (bool bShow)=0 | 
| virtual void | SetShowNewButtonInDropDown (bool bShow)=0 | 
| virtual void | SetShowPlugInItemInDropDown (bool bShow)=0 | 
| virtual bool | ShowContextMenu (void) const =0 | 
| virtual bool | ShowNewButtonInDropDown (void) const =0 | 
| virtual bool | ShowPlugInItemInDropDown (void) const =0 | 
| virtual void | UpdateView (void)=0 | 
|  Public Member Functions inherited from IRhinoUiWithController | |
| virtual std::shared_ptr< IRhinoUiController > | Controller (void) const =0 | 
| virtual ON_UUID | ControllerId (void) const =0 | 
| virtual void | SetController (std::shared_ptr< IRhinoUiController > con)=0 | 
|  Public Member Functions inherited from IRhinoUiWindow | |
| virtual ON_wString | Caption (bool bAlwaysEnglish=false) const =0 | 
| virtual void | Delete (void)=0 | 
| virtual void | Enable (bool bEnable)=0 | 
| virtual void * | EVF (const wchar_t *wszFunc, void *pvData)=0 | 
| virtual void | GetScreenCoords (ON_4iRect &rectOut) const =0 | 
| virtual HWND | GetWindow (void)=0 | 
| virtual bool | IsCreated (void) const =0 | 
| virtual bool | IsEnabled (void) const =0 | 
| virtual bool | IsShown (void) const =0 | 
| virtual void | Move (const ON_4iRect &rect, bool bRepaint=false, bool bRepaintBorder=false)=0 | 
| virtual HWND | Parent (void) const =0 | 
| virtual void | Refresh (bool bImmediate=false)=0 | 
| virtual void | SetFocus (void)=0 | 
| virtual void | SetParent (HWND parent)=0 | 
| virtual void | Show (bool bShow)=0 | 
|  Public Member Functions inherited from IRhinoUiControllerEventWatcher | |
| virtual void * | EVF (const wchar_t *wszFunc, void *pvData)=0 | 
| virtual void | OnControllerActivatedEvent (IRhinoUiController &con)=0 | 
| virtual void | OnEvent (IRhinoUiController &con, const UUID &uuidData, IRhinoUiController::EventPriority ep, const IRhinoUiEventInfo *pInfo)=0 | 
| Static Public Member Functions | |
| static IRhRdkNewContentCtrl * | New (Styles s, RhRdkUiFrameworks f) | 
| static void | NewDataSources (OUT ON_SimpleArray< IRhinoUiDataSource * > &aDS, const CRhRdkContentKindList &kinds, const CRhRdkDocument &rdkDoc) | 
| static RDK_DEPRECATED void | NewDataSources (OUT ON_SimpleArray< IRhinoUiDataSource * > &aDS, const CRhRdkContentKindList &kinds, const CRhRdkDocument *pRdkDoc) | 
| static void | RequiredDataSources (OUT ON_SimpleArray< ON_UUID > &aId) | 
| Protected Member Functions | |
| virtual | ~IRhRdkNewContentCtrl () | 
|  Protected Member Functions inherited from IRhinoUiWithController | |
| virtual | ~IRhinoUiWithController () | 
|  Protected Member Functions inherited from IRhinoUiWindow | |
| virtual | ~IRhinoUiWindow () | 
|  Protected Member Functions inherited from IRhinoUiControllerEventWatcher | |
| virtual | ~IRhinoUiControllerEventWatcher () | 
'NCC'.
STARTING WITH RHINO 8, THIS INTERFACE SHOULD NOT BE USED BY 3RD PARTY PLUG-INS.
| 
 | strong | 
| 
 | strong | 
| 
 | inlineprotectedvirtual | 
| 
 | pure virtual | 
Make the control close its drop-down thumbnail list (if open). The drop-down list also closes automatically when it loses the focus.
| 
 | pure virtual | 
| 
 | pure virtual | 
Get the assign-by for the Object Material UI. This UI not only allows selection of contents, but also of special items. These items are listed in the AssignBys enum.
| 
 | pure virtual | 
| 
 | pure virtual | 
Get the selected contents.
| aContent | accepts the contents. | 
| 
 | pure virtual | 
Get the selected contents' instance ids.
| aInstance | accepts the instance ids. | 
| 
 | pure virtual | 
| 
 | pure virtual | 
| 
 | static | 
Create a new content control.
| s | specifies the style of the control. | 
| f | must be RhRdkUiFrameworks::Eto; the others are not implemented. | 
| 
 | static | 
Creates new data sources for managing a simple selection of document-resident contents.
| aDS | accepts all the new data sources that the NCC needs in order to function. | 
| rdkDoc | specifies the document within which the contents reside. | 
| kinds | specifies the allowed content kinds. The caller shall delete the returned data sources when they are longer needed. | 
| 
 | static | 
This method is deprecated in favor of the one below.
| 
 | pure virtual | 
Make the control open its context menu.
| point | is the client coordinates to display the menu at. | 
| 
 | pure virtual | 
Make the control open its drop-down thumbnail list (if closed).
| 
 | static | 
Returns the ids of the data sources needed to make the control work.
| 
 | pure virtual | 
Set the assign-by for the Object Material UI.
| a | is the assign-by setting. | 
| 
 | pure virtual | 
| 
 | pure virtual | 
Set the control to 'varies'. Useful for clients that only support single content selections and want the control to display (varies) when more than one content is selected.
| 
 | pure virtual | 
Set the selected contents. Supports 'varies'.
| aContent | is the array of contents. | 
| 
 | pure virtual | 
Set the selected contents' instance ids. Supports 'varies'.
| aInstance | is the array of contents. | 
| 
 | pure virtual | 
Set whether or not a context menu is displayed.
| 
 | pure virtual | 
Set whether or not a 'New' button is displayed in the drop-down list.
| 
 | pure virtual | 
Set whether or not a 'plug-in' item is displayed in the drop-down list.
| 
 | pure virtual | 
Query whether or not a context menu is displayed.
| 
 | pure virtual | 
Query whether or not a 'New' button is displayed in the drop-down list.
| 
 | pure virtual | 
Query whether or not a 'plug-in' item is displayed in the drop-down list.
| 
 | pure virtual | 
Refreshes the control.
 1.8.17
 1.8.17