Rhino C++ API
8.17
|
CRhinoUiLayerComboBox. More...
#include <RhinoSdkUiLayerComboBox.h>
Public Member Functions | |
CRhinoUiLayerComboBox () | |
virtual | ~CRhinoUiLayerComboBox () |
int | AddLayerToList (const CRhinoLayer &layer) |
virtual int | CompareItem (LPCOMPAREITEMSTRUCT lpCompareItemStruct) |
CRhinoDoc * | Document () |
virtual void | DrawItem (LPDRAWITEMSTRUCT lpDrawItemStruct) |
const CRhinoLayer * | Layer (int list_index) |
int | LayerIndexFromListIndex (int list_index) |
int | ListIndexFromLayerIndex (int layer_index) |
int | LoadLayers (CRhinoDoc *doc, bool bShowReference=true, int set_current=-1) |
afx_msg void | OnLButtonDblClk (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonDown (UINT nFlags, CPoint point) |
BOOL32 | RemoveLayerFromList (int layer_index) |
int | SelectedLayerIndex () |
Protected Member Functions | |
void | DestroyPopDownWnd () |
virtual void | PreSubclassWindow () |
void | ShowPopDownWnd (HWND hWnd, bool bShow) |
Protected Attributes | |
bool | m_bShowReference |
HPALETTE | m_hPalette |
CRhinoUiPopDownLayerWnd * | m_pWndPopDown |
/ / Copyright (c) 1993-2007 Robert McNeel & Associates. All rights reserved. / Rhinoceros is a registered trademark of Robert McNeel & Associates. / / THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. / ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF / MERCHANTABILITY ARE HEREBY DISCLAIMED. / / For complete Rhino SDK copyright information see http://www.rhino3d.com/developer. / //////////////////////////////////////////////////////////////
CRhinoUiLayerComboBox::CRhinoUiLayerComboBox | ( | ) |
|
virtual |
int CRhinoUiLayerComboBox::AddLayerToList | ( | const CRhinoLayer & | layer | ) |
|
virtual |
|
protected |
CRhinoDoc* CRhinoUiLayerComboBox::Document | ( | ) |
|
virtual |
const CRhinoLayer* CRhinoUiLayerComboBox::Layer | ( | int | list_index | ) |
int CRhinoUiLayerComboBox::LayerIndexFromListIndex | ( | int | list_index | ) |
Description: Get layer index associated with a specific combo box item Parameters: list_index [in] - list item to check Returns: Layer index or -1 on error
int CRhinoUiLayerComboBox::ListIndexFromLayerIndex | ( | int | layer_index | ) |
Description: Get combo box index from layer index Parameters: layer_index [in] - layer index to scan for Returns: combo box index or -1 if not found in list
int CRhinoUiLayerComboBox::LoadLayers | ( | CRhinoDoc * | doc, |
bool | bShowReference = true , |
||
int | set_current = -1 |
||
) |
Description: Populate combo box with layer names and colors Parameters: doc [in] - document containing layer table bShowReference [in] - show reference layers set_current [in] - layer index of item to set as current Returns: Number of layers added to list
afx_msg void CRhinoUiLayerComboBox::OnLButtonDblClk | ( | UINT | nFlags, |
CPoint | point | ||
) |
afx_msg void CRhinoUiLayerComboBox::OnLButtonDown | ( | UINT | nFlags, |
CPoint | point | ||
) |
|
protectedvirtual |
BOOL32 CRhinoUiLayerComboBox::RemoveLayerFromList | ( | int | layer_index | ) |
int CRhinoUiLayerComboBox::SelectedLayerIndex | ( | ) |
Description: Get layer index associated with current combo box selection Returns: Layer index or -1 if nothing selected
|
protected |
|
protected |
|
protected |
|
protected |