Rhino C++ API
8.14
|
Input to the RhinoGetPlane() and RhinoGetRectangle() functions. More...
#include <rhinoSdkGetPlane.h>
Public Types | |
enum | { mode_corners, mode_3point, mode_vertical, mode_center, mode_3point_mid, mode_3point_center } |
enum | { corner_arc = 0, corner_conic = 1, corner_chamfer = 2 } |
enum | { plane_type = 0, box_type = 1, plane_type_ex = 2, detail_type = 3 } |
Public Member Functions | |
CArgsRhinoGetPlane () | |
CArgsRhinoGetPlane (const CArgsRhinoGetPlane &src) | |
virtual | ~CArgsRhinoGetPlane () |
void | AcceptNothing (bool bAcceptNothing=true) |
Like CRhinoGet::AcceptNothing(). More... | |
virtual void | AddExtraOptions (CRhinoGetPoint &gp) |
Allows for adding extra command options during RhinoGetRectangle. More... | |
BOOL32 | Allow3Point () |
BOOL32 | AllowCenter () |
BOOL32 | AllowCorners () |
BOOL32 | AllowDeformable () const |
BOOL32 | AllowForceAspectRatio () |
BOOL32 | AllowRounded () |
BOOL32 | AllowVertical () |
int | ArgsType () const |
return type of args class plane or derived box More... | |
int | CornerMode () |
double | CornerRadius () |
double | CornerRho () |
int | CurrentMode () |
BOOL32 | Deformable () const |
bool | DrawPicture () |
std::function< void(const ON_3dPoint[4])> | DynamicRectangleCallback () const |
virtual bool | ExtraOptionsAtStart () const |
ON_Color | FeedbackColor () const |
color used to draw feedback line More... | |
int | FirstDirectionCount () const |
number of faces in first direction More... | |
int | FirstDirectionMinCount () const |
const CRhinoCommandOptionName & | FirstMeshDensityDirectionPrompt () const |
prompt for number of faces in first direction More... | |
const ON_3dPoint & | FirstPoint () const |
const wchar_t * | FirstPointPrompt3Point () const |
prompt when getting first corner More... | |
const wchar_t * | FirstPointPromptCenter () const |
prompt when getting center in center mode More... | |
const wchar_t * | FirstPointPromptCorners () const |
prompt when getting first corner More... | |
const wchar_t * | FirstPointPromptVertical () const |
prompt when getting first corner More... | |
double | ForcedAspectRatio () |
virtual void | HandleExtraOptions (const CRhinoGetPoint &gp) |
BOOL32 | HaveFirstPoint () const |
BOOL32 | HavePlane () const |
BOOL32 | HaveSecondPoint () const |
BOOL32 | HaveThirdPoint () const |
double | Length () |
CArgsRhinoGetPlane & | operator= (const CArgsRhinoGetPlane &src) |
const wchar_t * | PictureFileName () const |
const ON_Plane & | Plane () const |
bool | PromptForMeshDensity () const |
BOOL32 | Rounded () |
int | SecondDirectionCount () const |
number of faces in second direction More... | |
int | SecondDirectionMinCount () const |
const CRhinoCommandOptionName & | SecondMeshDensityDirectionPrompt () const |
prompt for number of faces in second direction More... | |
const ON_3dPoint & | SecondPoint () const |
const wchar_t * | SecondPointPrompt3Point () const |
prompt when getting second point in 3 point mode More... | |
const wchar_t * | SecondPointPromptCenter () const |
prompt when getting corner in center mode More... | |
const wchar_t * | SecondPointPromptCorners () const |
prompt when getting opposite corner More... | |
const wchar_t * | SecondPointPromptVertical () const |
prompt when getting second point in vertical mode More... | |
void | SetAllow3Point (BOOL32 allow=TRUE) |
void | SetAllowCenter (BOOL32 allow=TRUE) |
void | SetAllowCorners (BOOL32 allow=TRUE) |
void | SetAllowDeformable (BOOL32 b=TRUE) |
void | SetAllowForceAspectRatio (BOOL32 allow=TRUE) |
void | SetAllowRounded (BOOL32 allow=FALSE) |
void | SetAllowVertical (BOOL32 allow=TRUE) |
void | SetCornerMode (int mode=corner_arc) |
void | SetCornerRadius (double radius) |
void | SetCornerRho (double rho) |
void | SetCurrentMode (int mode=mode_corners) |
void | SetDeformable (BOOL32 bDeformable=TRUE) |
void | SetDynamicRectangleCallback (std::function< void(const ON_3dPoint[4])> callback) |
void | SetFeedbackColor (COLORREF color) |
void | SetFirstDirectionCount (int count) |
void | SetFirstDirectionMinCount (int count) |
void | SetFirstMeshDensityDirectionPrompt (const CRhinoCommandOptionName &) |
void | SetFirstPoint (const ON_3dPoint &base) |
void | SetFirstPointPrompt3Point (const wchar_t *prompt) |
void | SetFirstPointPromptCenter (const wchar_t *prompt) |
void | SetFirstPointPromptCorners (const wchar_t *prompt) |
void | SetFirstPointPromptVertical (const wchar_t *prompt) |
void | SetForcedAspectRatio (double forced_aspect_ratio) |
void | SetHaveFirstPoint (BOOL32 b=TRUE) |
void | SetHavePlane (BOOL32 b=TRUE) |
void | SetHaveSecondPoint (BOOL32 b=TRUE) |
void | SetHaveThirdPoint (BOOL32 b=TRUE) |
void | SetLength (double length) |
void | SetPictureFileNameAndSize (const wchar_t *filename, int width, int height) |
void | SetPlane (const ON_Plane &plane) |
void | SetPromptForMeshDensity (bool bMeshDensity=true) |
void | SetRounded (BOOL32 allow=FALSE) |
void | SetSecondDirectionCount (int count) |
void | SetSecondDirectionMinCount (int count) |
void | SetSecondMeshDensityDirectionPrompt (const CRhinoCommandOptionName &) |
void | SetSecondPoint (const ON_3dPoint &point) |
void | SetSecondPointPrompt3Point (const wchar_t *prompt) |
void | SetSecondPointPromptCenter (const wchar_t *prompt) |
void | SetSecondPointPromptCorners (const wchar_t *prompt) |
void | SetSecondPointPromptVertical (const wchar_t *prompt) |
void | SetThirdDirectionCount (int count) |
void | SetThirdDirectionMinCount (int count) |
void | SetThirdMeshDensityDirectionPrompt (const CRhinoCommandOptionName &) |
void | SetThirdPoint (const ON_3dPoint &point) |
void | SetThirdPointPrompt3Point (const wchar_t *prompt) |
void | SetThirdPointPromptVertical (const wchar_t *prompt) |
void | SetUDegree (int degree) |
void | SetUPointCount (int count) |
void | SetUseActiveLayerLinetype (bool on) |
When true the linetype of the active layer is used for dynamic drawing. More... | |
void | SetVDegree (int degree) |
void | SetVPointCount (int count) |
void | SetWidth (double width) |
int | ThirdDirectionCount () const |
number of faces in third direction More... | |
int | ThirdDirectionMinCount () const |
const CRhinoCommandOptionName & | ThirdMeshDensityDirectionPrompt () const |
prompt for number of faces in third direction More... | |
const ON_3dPoint & | ThirdPoint () const |
const wchar_t * | ThirdPointPrompt3Point () const |
prompt when getting opposite side in 3point mode More... | |
const wchar_t * | ThirdPointPromptVertical () const |
prompt when getting opposite side in vertical mode More... | |
int | UDegree () const |
int | UPointCount () const |
bool | UseActiveLayerLinetype () const |
int | VDegree () const |
int | VPointCount () const |
double | Width () |
Public Attributes | |
bool | m_bAcceptNothing |
int | m_simple_option_index |
ON_ClassArray< CRhinoCommandOptionName > | m_simple_options |
input - simple options to add to the first prompt; More... | |
Input to the RhinoGetPlane() and RhinoGetRectangle() functions.
Copyright (c) 1993-2017 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.
anonymous enum |
CArgsRhinoGetPlane::CArgsRhinoGetPlane | ( | ) |
|
virtual |
CArgsRhinoGetPlane::CArgsRhinoGetPlane | ( | const CArgsRhinoGetPlane & | src | ) |
void CArgsRhinoGetPlane::AcceptNothing | ( | bool | bAcceptNothing = true | ) |
|
virtual |
Allows for adding extra command options during RhinoGetRectangle.
Reimplemented in CArgsRhinoGetPicture.
BOOL32 CArgsRhinoGetPlane::Allow3Point | ( | ) |
BOOL32 CArgsRhinoGetPlane::AllowCenter | ( | ) |
BOOL32 CArgsRhinoGetPlane::AllowCorners | ( | ) |
BOOL32 CArgsRhinoGetPlane::AllowDeformable | ( | ) | const |
BOOL32 CArgsRhinoGetPlane::AllowForceAspectRatio | ( | ) |
BOOL32 CArgsRhinoGetPlane::AllowRounded | ( | ) |
BOOL32 CArgsRhinoGetPlane::AllowVertical | ( | ) |
int CArgsRhinoGetPlane::ArgsType | ( | ) | const |
return type of args class plane or derived box
int CArgsRhinoGetPlane::CornerMode | ( | ) |
double CArgsRhinoGetPlane::CornerRadius | ( | ) |
double CArgsRhinoGetPlane::CornerRho | ( | ) |
int CArgsRhinoGetPlane::CurrentMode | ( | ) |
BOOL32 CArgsRhinoGetPlane::Deformable | ( | ) | const |
bool CArgsRhinoGetPlane::DrawPicture | ( | ) |
std::function<void(const ON_3dPoint[4])> CArgsRhinoGetPlane::DynamicRectangleCallback | ( | ) | const |
Description: Get callback function for doing custom dynamic drawing Returns: Callback function Remarks: Good for custom drawing when calling RhinoGetRectangle
|
virtual |
Interface for subclasses adding extra options. Return true if you want to add extra options to the start of the command option list false for options at the end Default is false
ON_Color CArgsRhinoGetPlane::FeedbackColor | ( | ) | const |
color used to draw feedback line
int CArgsRhinoGetPlane::FirstDirectionCount | ( | ) | const |
number of faces in first direction
int CArgsRhinoGetPlane::FirstDirectionMinCount | ( | ) | const |
const CRhinoCommandOptionName& CArgsRhinoGetPlane::FirstMeshDensityDirectionPrompt | ( | ) | const |
prompt for number of faces in first direction
const ON_3dPoint& CArgsRhinoGetPlane::FirstPoint | ( | ) | const |
const wchar_t* CArgsRhinoGetPlane::FirstPointPrompt3Point | ( | ) | const |
prompt when getting first corner
const wchar_t* CArgsRhinoGetPlane::FirstPointPromptCenter | ( | ) | const |
prompt when getting center in center mode
const wchar_t* CArgsRhinoGetPlane::FirstPointPromptCorners | ( | ) | const |
prompt when getting first corner
const wchar_t* CArgsRhinoGetPlane::FirstPointPromptVertical | ( | ) | const |
prompt when getting first corner
double CArgsRhinoGetPlane::ForcedAspectRatio | ( | ) |
|
virtual |
Reimplemented in CArgsRhinoGetPicture.
BOOL32 CArgsRhinoGetPlane::HaveFirstPoint | ( | ) | const |
BOOL32 CArgsRhinoGetPlane::HavePlane | ( | ) | const |
BOOL32 CArgsRhinoGetPlane::HaveSecondPoint | ( | ) | const |
BOOL32 CArgsRhinoGetPlane::HaveThirdPoint | ( | ) | const |
double CArgsRhinoGetPlane::Length | ( | ) |
CArgsRhinoGetPlane& CArgsRhinoGetPlane::operator= | ( | const CArgsRhinoGetPlane & | src | ) |
const wchar_t* CArgsRhinoGetPlane::PictureFileName | ( | ) | const |
const ON_Plane& CArgsRhinoGetPlane::Plane | ( | ) | const |
Set or get a plane to which the rectangle is constrained If none is set, the construction plane of the current viewport is used The base point is snapped to this plane
bool CArgsRhinoGetPlane::PromptForMeshDensity | ( | ) | const |
BOOL32 CArgsRhinoGetPlane::Rounded | ( | ) |
int CArgsRhinoGetPlane::SecondDirectionCount | ( | ) | const |
number of faces in second direction
int CArgsRhinoGetPlane::SecondDirectionMinCount | ( | ) | const |
const CRhinoCommandOptionName& CArgsRhinoGetPlane::SecondMeshDensityDirectionPrompt | ( | ) | const |
prompt for number of faces in second direction
const ON_3dPoint& CArgsRhinoGetPlane::SecondPoint | ( | ) | const |
const wchar_t* CArgsRhinoGetPlane::SecondPointPrompt3Point | ( | ) | const |
prompt when getting second point in 3 point mode
const wchar_t* CArgsRhinoGetPlane::SecondPointPromptCenter | ( | ) | const |
prompt when getting corner in center mode
const wchar_t* CArgsRhinoGetPlane::SecondPointPromptCorners | ( | ) | const |
prompt when getting opposite corner
const wchar_t* CArgsRhinoGetPlane::SecondPointPromptVertical | ( | ) | const |
prompt when getting second point in vertical mode
void CArgsRhinoGetPlane::SetAllow3Point | ( | BOOL32 | allow = TRUE | ) |
void CArgsRhinoGetPlane::SetAllowCenter | ( | BOOL32 | allow = TRUE | ) |
void CArgsRhinoGetPlane::SetAllowCorners | ( | BOOL32 | allow = TRUE | ) |
Set or Get whether to allow the respective interactive modes Default is to allow them all
void CArgsRhinoGetPlane::SetAllowDeformable | ( | BOOL32 | b = TRUE | ) |
void CArgsRhinoGetPlane::SetAllowForceAspectRatio | ( | BOOL32 | allow = TRUE | ) |
void CArgsRhinoGetPlane::SetAllowRounded | ( | BOOL32 | allow = FALSE | ) |
void CArgsRhinoGetPlane::SetAllowVertical | ( | BOOL32 | allow = TRUE | ) |
void CArgsRhinoGetPlane::SetCornerMode | ( | int | mode = corner_arc | ) |
void CArgsRhinoGetPlane::SetCornerRadius | ( | double | radius | ) |
void CArgsRhinoGetPlane::SetCornerRho | ( | double | rho | ) |
void CArgsRhinoGetPlane::SetCurrentMode | ( | int | mode = mode_corners | ) |
Set or get the starting mode for getting input Default is start_corners
void CArgsRhinoGetPlane::SetDeformable | ( | BOOL32 | bDeformable = TRUE | ) |
void CArgsRhinoGetPlane::SetDynamicRectangleCallback | ( | std::function< void(const ON_3dPoint[4])> | callback | ) |
Description: Set callback function for doing custom dynamic drawing Parameters: callback [in] Callback function for dynamic drawing Remarks: Good for custom drawing when calling RhinoGetRectangle
void CArgsRhinoGetPlane::SetFeedbackColor | ( | COLORREF | color | ) |
void CArgsRhinoGetPlane::SetFirstDirectionCount | ( | int | count | ) |
void CArgsRhinoGetPlane::SetFirstDirectionMinCount | ( | int | count | ) |
void CArgsRhinoGetPlane::SetFirstMeshDensityDirectionPrompt | ( | const CRhinoCommandOptionName & | ) |
void CArgsRhinoGetPlane::SetFirstPoint | ( | const ON_3dPoint & | base | ) |
Set or get the basepoint used for the first corner of the rectangle If one isn't supplied, the user is prompted for one
void CArgsRhinoGetPlane::SetFirstPointPrompt3Point | ( | const wchar_t * | prompt | ) |
void CArgsRhinoGetPlane::SetFirstPointPromptCenter | ( | const wchar_t * | prompt | ) |
void CArgsRhinoGetPlane::SetFirstPointPromptCorners | ( | const wchar_t * | prompt | ) |
void CArgsRhinoGetPlane::SetFirstPointPromptVertical | ( | const wchar_t * | prompt | ) |
void CArgsRhinoGetPlane::SetForcedAspectRatio | ( | double | forced_aspect_ratio | ) |
void CArgsRhinoGetPlane::SetHaveFirstPoint | ( | BOOL32 | b = TRUE | ) |
void CArgsRhinoGetPlane::SetHavePlane | ( | BOOL32 | b = TRUE | ) |
void CArgsRhinoGetPlane::SetHaveSecondPoint | ( | BOOL32 | b = TRUE | ) |
void CArgsRhinoGetPlane::SetHaveThirdPoint | ( | BOOL32 | b = TRUE | ) |
void CArgsRhinoGetPlane::SetLength | ( | double | length | ) |
void CArgsRhinoGetPlane::SetPictureFileNameAndSize | ( | const wchar_t * | filename, |
int | width, | ||
int | height | ||
) |
Description: Dynamically draws a picture or bitmap image. Parameters: filename [in] - Path to the picture or bitmap image file (e.g. png, jpg, bmp, etc.) width [in] - Width of the bitmap image in pixels. height [in] - Height of the bitmap image in pixels. Remarks: Picture drawing only works in 2Point (Default), 3Point, Center, and Vertical modes. The width and height arguments will be used to set the forced aspect ratio. See Also: CArgsRhinoGetPlane::SetAllowForceAspectRatio CArgsRhinoGetPlane::SetForcedAspectRatio
void CArgsRhinoGetPlane::SetPlane | ( | const ON_Plane & | plane | ) |
void CArgsRhinoGetPlane::SetPromptForMeshDensity | ( | bool | bMeshDensity = true | ) |
Interface to allow primitive mesh creation to use RhinoGetPlane, RhinoGetBox, etc.
void CArgsRhinoGetPlane::SetRounded | ( | BOOL32 | allow = FALSE | ) |
void CArgsRhinoGetPlane::SetSecondDirectionCount | ( | int | count | ) |
void CArgsRhinoGetPlane::SetSecondDirectionMinCount | ( | int | count | ) |
void CArgsRhinoGetPlane::SetSecondMeshDensityDirectionPrompt | ( | const CRhinoCommandOptionName & | ) |
void CArgsRhinoGetPlane::SetSecondPoint | ( | const ON_3dPoint & | point | ) |
Set or get the second end of the first edge If one isn't supplied, the user is prompted for one
void CArgsRhinoGetPlane::SetSecondPointPrompt3Point | ( | const wchar_t * | prompt | ) |
void CArgsRhinoGetPlane::SetSecondPointPromptCenter | ( | const wchar_t * | prompt | ) |
void CArgsRhinoGetPlane::SetSecondPointPromptCorners | ( | const wchar_t * | prompt | ) |
void CArgsRhinoGetPlane::SetSecondPointPromptVertical | ( | const wchar_t * | prompt | ) |
void CArgsRhinoGetPlane::SetThirdDirectionCount | ( | int | count | ) |
void CArgsRhinoGetPlane::SetThirdDirectionMinCount | ( | int | count | ) |
void CArgsRhinoGetPlane::SetThirdMeshDensityDirectionPrompt | ( | const CRhinoCommandOptionName & | ) |
void CArgsRhinoGetPlane::SetThirdPoint | ( | const ON_3dPoint & | point | ) |
Set or get the third point in rect3pt mode If one isn't supplied, the user is prompted for one
void CArgsRhinoGetPlane::SetThirdPointPrompt3Point | ( | const wchar_t * | prompt | ) |
void CArgsRhinoGetPlane::SetThirdPointPromptVertical | ( | const wchar_t * | prompt | ) |
void CArgsRhinoGetPlane::SetUDegree | ( | int | degree | ) |
void CArgsRhinoGetPlane::SetUPointCount | ( | int | count | ) |
void CArgsRhinoGetPlane::SetUseActiveLayerLinetype | ( | bool | on | ) |
When true the linetype of the active layer is used for dynamic drawing.
void CArgsRhinoGetPlane::SetVDegree | ( | int | degree | ) |
void CArgsRhinoGetPlane::SetVPointCount | ( | int | count | ) |
void CArgsRhinoGetPlane::SetWidth | ( | double | width | ) |
int CArgsRhinoGetPlane::ThirdDirectionCount | ( | ) | const |
number of faces in third direction
int CArgsRhinoGetPlane::ThirdDirectionMinCount | ( | ) | const |
const CRhinoCommandOptionName& CArgsRhinoGetPlane::ThirdMeshDensityDirectionPrompt | ( | ) | const |
prompt for number of faces in third direction
const ON_3dPoint& CArgsRhinoGetPlane::ThirdPoint | ( | ) | const |
const wchar_t* CArgsRhinoGetPlane::ThirdPointPrompt3Point | ( | ) | const |
prompt when getting opposite side in 3point mode
const wchar_t* CArgsRhinoGetPlane::ThirdPointPromptVertical | ( | ) | const |
prompt when getting opposite side in vertical mode
int CArgsRhinoGetPlane::UDegree | ( | ) | const |
int CArgsRhinoGetPlane::UPointCount | ( | ) | const |
bool CArgsRhinoGetPlane::UseActiveLayerLinetype | ( | ) | const |
int CArgsRhinoGetPlane::VDegree | ( | ) | const |
int CArgsRhinoGetPlane::VPointCount | ( | ) | const |
double CArgsRhinoGetPlane::Width | ( | ) |
|
protected |
|
protected |
|
protected |
allow switching to respective modes for interactive input
|
protected |
|
protected |
|
protected |
|
protected |
This variable is to distinguish whether this class is really a CArgsRhinoGetPlane or the derived class CArgsRhinoGetBox. It is set to plane_type in the constructor for the plane, which is called first, and box_type in the constructor for the box. ArgsType() returns the value of m_ArgsType
bool CArgsRhinoGetPlane::m_bAcceptNothing |
|
protected |
|
protected |
|
protected |
|
protected |
starting mode - corners, 3pt, vertical
|
protected |
|
protected |
color to use when drawing dynamic line while getting second corner
|
protected |
|
protected |
called-supplied first corner ot the rectangle
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
file used to draw picture or bitmap image dynamically
|
protected |
plane on which the rectangle will lie
|
protected |
prompt when getting first corner in 3 point mode
|
protected |
prompt when getting center in center mode
|
protected |
prompt when getting first corner in corners mode
|
protected |
prompt when getting first corner in vertical mode
|
protected |
prompt when getting opposite corner or second end of first edge
|
protected |
prompt when getting corner in center mode
|
protected |
prompt when getting opposite corner or second end of first edge
|
protected |
prompt when getting the second point in vertical mode
|
protected |
prompt when getting point on opposite side in 3 point mode
|
protected |
prompt when getting point on opposite side in 3 point mode
|
protected |
Interface to allow primitive mesh creation to use RhinoGetPlane, RhinoGetBox, etc.
|
protected |
|
protected |
called-supplied second end of first edge
int CArgsRhinoGetPlane::m_simple_option_index |
output - if >= 0, one of the simpple options above was picked.
ON_ClassArray<CRhinoCommandOptionName> CArgsRhinoGetPlane::m_simple_options |
input - simple options to add to the first prompt;
|
protected |
called-supplied third point in rect3pt mode
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |