Class: Sketchup::RenderingOptions
| Relationships | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Entity
|
|
|
Instance Chain:
self,
Enumerable,
Entity
|
|
| Inherits: |
Sketchup::Entity
|
Overview
The RenderingOptions class contains method to extract the rendering information for a model. The majority of the rendering information returned exists in the Styles dialog. The following rendering information keys are maintained in SketchUp:
-
BackgroundColor -
BandColor -
ConstructionColor -
DepthQueWidth -
DisplayColorByLayer -
DisplayFog -
DisplayInstanceAxes -
DisplayWatermarks -
DrawDepthQue -
DrawGround -
DrawHidden -
DrawHorizon -
DrawLineEnds -
DrawProfilesOnly -
DrawSilhouettes -
DrawUnderground -
EdgeColorMode -
EdgeDisplayMode -
EdgeType -
ExtendLines -
FaceBackColor -
FaceFrontColor -
FogColor -
FogEndDist -
FogStartDist -
FogUseBkColor -
ForegroundColor -
GroundColor -
GroundTransparency -
HideConstructionGeometry -
HighlightColor -
HorizonColor -
InactiveHidden -
InstanceHidden -
JitterEdges -
LineEndWidth -
LineExtension -
LockedColor -
MaterialTransparency -
ModelTransparency -
RenderMode -
SectionActiveColor -
SectionCutWidth -
SectionDefaultCutColor -
SectionInactiveColor -
ShowViewName -
SilhouetteWidth -
SkyColor -
Texture -
TransparencySortSketchUp 2017 treats Medium transparency as Faster.
Added in SketchUp 7:
-
DisplayDims -
DisplaySketchAxes -
DisplayText
Added in SketchUp 8:
-
InactiveFade -
InstanceFade
Added in SketchUp 2014:
-
DisplaySectionPlanes
Added in SketchUp 2015:
-
DisplaySectionCuts -
DrawBackEdges -
SectionCutDrawEdges
Added in SketchUp 2018:
-
SectionCutFilled -
SectionDefaultFillColor
Removed in SketchUp 2019.1
-
FaceColorModeThis option was previously included but it was ineffective.
Added in SketchUp 2020.0:
-
ROPDrawHiddenGeometry -
ROPDrawHiddenObjects
Added in SketchUp 2024.0:
-
AmbientOcclusion -
AmbientOcclusionDistance -
AmbientOcclusionIntensity
Constant Summary
-
ROPAssign =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 102
Constants
nil -
ROPDrawHidden =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 103
Stub value.
nil -
ROPDrawHiddenGeometry =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 104
Stub value.
nil -
ROPDrawHiddenObjects =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 105
Stub value.
nil -
ROPEditComponent =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 106
Stub value.
nil -
ROPSectionDisplayTurnedOff =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 107
Stub value.
nil -
ROPSetAODistance =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 108
Stub value.
nil -
ROPSetAOEnabled =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 109
Stub value.
nil -
ROPSetAOIntensity =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 110
Stub value.
nil -
ROPSetBackgroundColor =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 111
Stub value.
nil -
ROPSetConstructionColor =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 112
Stub value.
nil -
ROPSetDepthQueEdges =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 113
Stub value.
nil -
ROPSetDepthQueWidth =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 114
Stub value.
nil -
ROPSetDisplayColorByLayer =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 115
Stub value.
nil -
ROPSetDisplayDims =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 116
Stub value.
nil -
ROPSetDisplayFog =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 117
Stub value.
nil -
ROPSetDisplayInstanceAxes =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 118
Stub value.
nil -
ROPSetDisplaySketchAxes =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 119
Stub value.
nil -
ROPSetDisplayText =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 120
Stub value.
nil -
ROPSetDisplayWatermarks =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 121
Stub value.
nil -
ROPSetDrawBackEdges =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 122
Stub value.
nil -
ROPSetDrawGround =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 123
Stub value.
nil -
ROPSetDrawHorizon =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 124
Stub value.
nil -
ROPSetDrawUnderground =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 125
Stub value.
nil -
ROPSetEdgeColorMode =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 126
Stub value.
nil -
ROPSetEdgeDisplayMode =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 127
Stub value.
nil -
ROPSetEdgeType =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 128
Stub value.
nil -
ROPSetExtendEdges =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 129
Stub value.
nil -
ROPSetExtendLines =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 130
Stub value.
nil -
ROPSetFaceColor =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 131
Stub value.
nil -
ROPSetFaceColorMode =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 132
Stub value.
nil -
ROPSetFogColor =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 133
Stub value.
nil -
ROPSetFogDist =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 134
Stub value.
nil -
ROPSetFogHint =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 135
Stub value.
nil -
ROPSetFogUseBkColor =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 136
Stub value.
nil -
ROPSetForegroundColor =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 137
Stub value.
nil -
ROPSetGroundColor =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 138
Stub value.
nil -
ROPSetGroundTransparency =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 139
Stub value.
nil -
ROPSetHideConstructionGeometry =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 140
Stub value.
nil -
ROPSetHighlightColor =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 141
Stub value.
nil -
ROPSetHorizonColor =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 142
Stub value.
nil -
ROPSetJitterEdges =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 143
Stub value.
nil -
ROPSetLineEndEdges =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 144
Stub value.
nil -
ROPSetLineEndWidth =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 145
Stub value.
nil -
ROPSetLineExtension =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 146
Stub value.
nil -
ROPSetLineStyleEdges =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 147
Stub value.
nil -
ROPSetLockedColor =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 148
Stub value.
nil -
ROPSetMaterialTransparency =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 149
Stub value.
nil -
ROPSetModelTransparency =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 150
Stub value.
nil -
ROPSetPhotomatchBackgroundOpacity =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 151
Stub value.
nil -
ROPSetPhotomatchDrawBackground =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 152
Stub value.
nil -
ROPSetPhotomatchDrawOverlay =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 153
Stub value.
nil -
ROPSetPhotomatchOverlayOpacity =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 154
Stub value.
nil -
ROPSetProfileEdges =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 155
Stub value.
nil -
ROPSetProfileWidth =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 156
Stub value.
nil -
ROPSetProfilesOnlyEdges =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 157
Stub value.
nil -
ROPSetRenderMode =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 158
Stub value.
nil -
ROPSetSectionActiveColor =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 159
Stub value.
nil -
ROPSetSectionCutFilled =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 160
Stub value.
nil -
ROPSetSectionCutWidth =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 161
Stub value.
nil -
ROPSetSectionDefaultCutColor =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 162
Stub value.
nil -
ROPSetSectionDefaultFillColor =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 163
Stub value.
nil -
ROPSetSectionDisplayMode =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 164
Stub value.
nil -
ROPSetSectionInactiveColor =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 165
Stub value.
nil -
ROPSetSkyColor =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 166
Stub value.
nil -
ROPSetTexture =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 167
Stub value.
nil -
ROPSetTransparencyObsolete =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 168
Stub value.
nil -
ROPSetXRayOpacity =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 169
Stub value.
nil -
ROPTransparencySortMethod =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 170
Stub value.
nil
Class Method Summary
-
.each_key {|key| ... } ⇒ nil
The #each_key method iterates through all of the rendering options keys.
-
.keys ⇒ Array<String>
The keys method returns an array with all of the attribute keys.
Instance Attribute Summary
Entity - Inherited
Instance Method Summary
-
#[](key) ⇒ Object?
The #[] method is used to get the value of a rendering option.
-
#[]=(key, value) ⇒ Object
The set value []= method is used to set the value in the array of rendering options.
-
#add_observer(observer) ⇒ Boolean
The add_observer method is used to add an observer to the current object.
-
#count ⇒ Integer
The #count method is inherited from the
Enumerablemix-in module. -
#each {|key, value| ... } ⇒ nil
The #each method iterates through all of the rendering options key/value pairs.
-
#each_key {|key| ... } ⇒ nil
The #each_key method iterates through all of the rendering options keys.
-
#each_pair ⇒ nil
The #each_pair method is an alias for #each.
-
#keys ⇒ Array<String>
The keys method returns an array with all of the attribute keys.
-
#length ⇒ Integer
The #length method returns the number of options in the rendering options collection.
-
#remove_observer(observer) ⇒ Boolean
The remove_observer method is used to remove an observer from the current object.
- #size ⇒ Integer
Entity - Inherited
| #add_observer | The add_observer method is used to add an observer to the current object. |
| #attribute_dictionaries | The attribute_dictionaries method is used to retrieve the |
| #attribute_dictionary | The attribute_dictionary method is used to retrieve an attribute dictionary with a given name that is attached to an |
| #delete_attribute | The |
| #entityID | The entityID method is used to retrieve a unique ID assigned to an entity. |
| #get_attribute | The |
| #inspect | The |
| #model | The model method is used to retrieve the model for the entity. |
| #parent | The parent method is used to retrieve the parent of the entity. |
| #persistent_id | The |
| #remove_observer | The remove_observer method is used to remove an observer from the current object. |
| #set_attribute | The set attribute is used to set the value of an attribute in an attribute dictionary with the given name. |
| #to_s | The |
| #typename | The typename method retrieves the type of the entity, which will be a string such as “Face”, “Edge”, or “Group”. |
Class Method Details
.each_key {|key| ... } ⇒ nil
The #each_key method iterates through all of the rendering options keys.
.keys ⇒ Array<String>
The keys method returns an array with all of the attribute keys.
Instance Method Details
#[](key) ⇒ Object?
The #[] method is used to get the value of a rendering option.
#[]=(key, value) ⇒ Object
The set value []= method is used to set the value in the array of rendering options.
#add_observer(observer) ⇒ Boolean
The add_observer method is used to add an observer to the current object.
#count ⇒ Integer
The #count method is inherited from the Enumerable mix-in module.
#each {|key, value| ... } ⇒ nil
The #each method iterates through all of the rendering options key/value pairs.
#each_key {|key| ... } ⇒ nil
The #each_key method iterates through all of the rendering options keys.
#each_pair ⇒ nil
The #each_pair method is an alias for #each.
#keys ⇒ Array<String>
The keys method returns an array with all of the attribute keys.
#length ⇒ Integer
The #length method returns the number of options in the rendering options collection.
#remove_observer(observer) ⇒ Boolean
The remove_observer method is used to remove an observer from the current object.
#size ⇒ Integer
The #size method is an alias for #length.