Top Level Namespace
Constants # collapse
- ORIGIN
ORIGIN = Geom::ORIGIN
Same as Geom::ORIGIN.
- X_AXIS
X_AXIS = Geom::X_AXIS
The same as Geom::X_AXIS.
- Y_AXIS
Y_AXIS = Geom::Y_AXIS
The same as Geom::Y_AXIS.
- Z_AXIS
Z_AXIS = Geom::Z_AXIS
The same as Geom::Z_AXIS.
- IDENTITY
IDENTITY = Geom::IDENTITY
Is the same as Geom::IDENTITY.
- SKETCHUP_CONSOLE
SKETCHUP_CONSOLE
ModraUp::Console singleton. It is the default target for $stdout / $stderr.
- FILE_WRITE_OK
FILE_WRITE_OK = 0
ModraUp::TextureWriter#write succeeded. Top-level constant.
- FILE_WRITE_FAILED_INVALID_TYPE
FILE_WRITE_FAILED_INVALID_TYPE = 1
ModraUp::TextureWriter#write encountered an unsupported entity type. Top-level constant.
- FILE_WRITE_FAILED_UNKNOWN
FILE_WRITE_FAILED_UNKNOWN = 2
ModraUp::TextureWriter#write failed due to various reasons such as not loaded or unable to write to the path. Top-level constant.
- SB_PROMPT
SB_PROMPT = 0
ModraUp.set_status_text written to the left status bar prompt. Top-level constant.
- SB_VCB_VALUE
SB_VCB_VALUE = 1
ModraUp.set_status_text writes the VCB (Measurement Box) value. Top-level constant.
- SB_VCB_LABEL
SB_VCB_LABEL = 2
ModraUp.set_status_text written to VCB label. Top-level constant.
- MK_LBUTTON
MK_LBUTTON
Left mouse button pressed (tool flags). Top-level constant.
- MK_RBUTTON
MK_RBUTTON
Right mouse button pressed. Top-level constant.
- MK_SHIFT
MK_SHIFT
Shift is also CONSTRAIN_MODIFIER_MASK. Top-level constant.
- MK_CONTROL
MK_CONTROL
Control. The COPY_MODIFIER_MASK on Windows. Top-level constant.
- MK_MBUTTON
MK_MBUTTON
Middle mouse button pressed. Top-level constant.
- MK_ALT
MK_ALT
Alt modifier. On macOS, this is COPY_MODIFIER_MASK. Top-level constant.
- MK_COMMAND
MK_COMMAND = 1048576
Command (only macOS, consistent with SketchUp Mac). On macOS, this is ALT_MODIFIER_MASK. Top-level constant.
- CONSTRAIN_MODIFIER_MASK
CONSTRAIN_MODIFIER_MASK
Constraint Modifier Key Mask (Shift). Top-level constant. Matches SketchUp: Windows uses 4, macOS uses 131072 (NSEvent Shift bit).
- CONSTRAIN_MODIFIER_KEY
CONSTRAIN_MODIFIER_KEY
Constraint Modifier Key (Shift), equals VK_SHIFT. Top-level constant.
- COPY_MODIFIER_MASK
COPY_MODIFIER_MASK
Copy modifier mask (macOS uses Option/Alt, others use Control). Top-level constant.
- COPY_MODIFIER_KEY
COPY_MODIFIER_KEY
Copy modifier key (macOS as VK_ALT, others as VK_CONTROL). Top-level constant.
- ALT_MODIFIER_MASK
ALT_MODIFIER_MASK
The Alt modifier key mask (Command on macOS). Top-level constant.
- ALT_MODIFIER_KEY
ALT_MODIFIER_KEY
The third modifier key (macOS as VK_COMMAND, others as VK_ALT). Top-level constant.
- VK_SPACE
VK_SPACE = 32
Space virtual key code, for onKeyDown. Top-level constant.
- VK_PRIOR
VK_PRIOR
Page Up. Top-level constant.
- VK_NEXT
VK_NEXT
Page Down. Top-level constant.
- VK_END
VK_END
End. Top-level constant.
- VK_HOME
VK_HOME
Home. Top-level constant.
- VK_LEFT
VK_LEFT
Left arrow key. Top-level constant.
- VK_UP
VK_UP
Up arrow key. Top-level constant.
- VK_RIGHT
VK_RIGHT
Right arrow key. Top-level constant.
- VK_DOWN
VK_DOWN
Down arrow key. Top-level constant.
- VK_INSERT
VK_INSERT = 45
Insert. Top-level constant.
- VK_DELETE
VK_DELETE
Delete. Top-level constant.
- VK_SHIFT
Shift virtual key code, used with onKeyDown / onKeyUp. Top-level constant. As with SketchUp, the value varies by platform: Windows uses Win32 virtual key code, macOS uses NSEvent modifier keys.
- VK_CONTROL
VK_CONTROL
Control. Top-level constant. As with SketchUp, its value varies by platform: Windows uses the Win32 virtual key code, while macOS uses the NSEvent modifier key.
- VK_ALT
VK_ALT
Alt / Option。Top-level constant. As with SketchUp, its value varies by platform: Windows uses the Win32 virtual key code, while macOS uses the NSEvent modifier key.
- VK_MENU
VK_MENU
Same as VK_ALT. Top-level constant. Like SketchUp, the value varies by platform: Windows uses the Win32 virtual key code, macOS uses the NSEvent modifier key.
- VK_COMMAND
VK_COMMAND
Command(macOS)/ Left Windows Key. Top-level constant. As with SketchUp, the value varies by platform: Windows uses the Win32 virtual key code, while macOS uses the NSEvent modifier key.
- VK_ESCAPE
VK_ESCAPE = 27
Escape. Top-level constant; if onKeyDown returns true, then onCancel is not triggered.
- SnapTo_Arbitrary
SnapTo_Arbitrary = 0
Same as ModraUp::SnapTo_Arbitrary.
- SnapTo_Horizontal
SnapTo_Horizontal = 1
Same as ModraUp::SnapTo_Horizontal.
- SnapTo_Vertical
SnapTo_Vertical = 2
Same as ModraUp::SnapTo_Vertical.
- SnapTo_Sloped
SnapTo_Sloped = 3
Same as ModraUp::SnapTo_Sloped.
- LAYER_VISIBLE_BY_DEFAULT
LAYER_VISIBLE_BY_DEFAULT = 0
ModraUp::Layer visibility in the scene: default display.
- LAYER_HIDDEN_BY_DEFAULT
LAYER_HIDDEN_BY_DEFAULT = 1
ModraUp::Layer visibility in the scene: hidden by default.
- LAYER_USES_DEFAULT_VISIBILITY_ON_NEW_PAGES
LAYER_USES_DEFAULT_VISIBILITY_ON_NEW_PAGES = 0
New scenes use default visibility.
- LAYER_IS_VISIBLE_ON_NEW_PAGES
LAYER_IS_VISIBLE_ON_NEW_PAGES = 16
Force the layer to be visible when a new scene is created.
- LAYER_IS_HIDDEN_ON_NEW_PAGES
LAYER_IS_HIDDEN_ON_NEW_PAGES = 32
Hide the layer by default in a new scene.
- PAGE_USE_CAMERA
PAGE_USE_CAMERA = 1
ModraUp::Page#update / ModraUp::Pages#add camera pose flag.
- PAGE_USE_RENDERING_OPTIONS
PAGE_USE_RENDERING_OPTIONS = 2
Drawing style flag. The scene page does not temporarily save ModraUp::RenderingOptions separately.
- PAGE_USE_SHADOWINFO
PAGE_USE_SHADOWINFO = 4
Shadow setting flag. This kernel temporarily does not store ShadowInfo.
- PAGE_USE_SKETCHCS
PAGE_USE_SKETCHCS = 8
Axis flag. This kernel temporarily does not store Axes.
- PAGE_USE_HIDDEN
PAGE_USE_HIDDEN = 16
Hides geometry and objects (SketchUp 2019 and earlier).
- PAGE_USE_LAYER_VISIBILITY
PAGE_USE_LAYER_VISIBILITY = 32
Layer visibility flag.
- PAGE_USE_SECTION_PLANES
PAGE_USE_SECTION_PLANES = 64
Section flag. This nucleus temporarily does not store sections.
- PAGE_USE_HIDDEN_GEOMETRY
PAGE_USE_HIDDEN_GEOMETRY = 128
Hidden Geometry (SketchUp 2020+).
- PAGE_USE_HIDDEN_OBJECTS
PAGE_USE_HIDDEN_OBJECTS = 256
Use hidden groups/components (SketchUp 2020+).
- PAGE_USE_ENVIRONMENT
PAGE_USE_ENVIRONMENT = 512
Environment light flag. This nucleus temporarily does not store Environment.
- PAGE_USE_ALL
PAGE_USE_ALL = 4294967295
All scene properties.
- TextAlignLeft
TextAlignLeft = 0
Left-aligned horizontally. Used for the :align in ModraUp::View#draw_text.
- TextAlignCenter
TextAlignCenter = 1
Horizontal center alignment.
- TextAlignRight
TextAlignRight = 2
Align text to the right horizontally.
- TextVerticalAlignBoundsTop
TextVerticalAlignBoundsTop = 0
Align vertically to the top of the text bounds. Used for the :vertical_align in ModraUp::View#draw_text.
- TextVerticalAlignBaseline
TextVerticalAlignBaseline = 1
Align text vertically to the baseline.
- TextVerticalAlignCapHeight
TextVerticalAlignCapHeight = 2
Align text vertically to the cap height.
- TextVerticalAlignCenter
TextVerticalAlignCenter = 3
Align text vertically to the center of the first line height.
- ALeaderNone
ALeaderNone = 0
No leader line: the label sits on its point.
- ALeaderView
ALeaderView = 1
View-based leader (Text#leader_type).
- ALeaderModel
ALeaderModel = 2
Model-based (pushpin) leader (Text#leader_type).
- GL_POINTS
GL_POINTS = 0
ModraUp::View#draw entity type: points.
- GL_LINES
GL_LINES = 1
ModraUp::View#draw entity type: line pairs.
- GL_LINE_LOOP
GL_LINE_LOOP = 2
ModraUp::View#draw element type: closed line loop.
- GL_LINE_STRIP
GL_LINE_STRIP = 3
ModraUp::View#draw element type: line strip.
- GL_TRIANGLES
GL_TRIANGLES = 4
ModraUp::View#draw primitive type: triangle.
- GL_TRIANGLE_STRIP
GL_TRIANGLE_STRIP = 5
ModraUp::View#draw primitive type: triangle strip.
- GL_TRIANGLE_FAN
GL_TRIANGLE_FAN = 6
ModraUp::View#draw primitive type: triangle fan.
- GL_QUADS
GL_QUADS = 7
ModraUp::View#draw primitive type: quadrilateral.
- GL_QUAD_STRIP
GL_QUAD_STRIP = 8
ModraUp::View#draw primitive type: quad strip.
- GL_POLYGON
GL_POLYGON = 9
ModraUp::View#draw element type: polygon.
- MF_ENABLED
MF_ENABLED = 0
Menu/Command Enablement: Enabled. Top-level constant.
- MF_GRAYED
MF_GRAYED = 1
Menu/Command Enable State: Grayed.
- MF_DISABLED
MF_DISABLED = 2
Menu/Command Enablement: Disabled.
- MF_CHECKED
MF_CHECKED = 8
Menu/Command Check: Checked.
- MF_UNCHECKED
MF_UNCHECKED = 0
Menu/Command Check: Not Checked (same value as MF_ENABLED).
- TB_HIDDEN
Top level TB_HIDDEN, with the same value as UI::TB_HIDDEN.
- TB_VISIBLE
Top level TB_VISIBLE.
- TB_NEVER_SHOWN
Top level TB_NEVER_SHOWN.
- MB_OK
Top level MB_OK.
- MB_OKCANCEL
Top level MB_OKCANCEL.
- MB_ABORTRETRYIGNORE
Top MB_ABORTRETRYIGNORE.
- MB_YESNOCANCEL
Top level MB_YESNOCANCEL.
- MB_YESNO
Top level MB_YESNO.
- MB_RETRYCANCEL
Top-level MB_RETRYCANCEL.
- MB_MULTILINE
Top level MB_MULTILINE.
- IDOK
Top level IDOK.
- IDCANCEL
Top-Level IDCANCEL.
- IDABORT
Top level IDABORT.
- IDRETRY
Top-level IDRETRY.
- IDIGNORE
Top Level IDIGNORE.
- IDYES
Top level IDYES.
- IDNO
Top Level IDNO.