Class: Sketchup::RenderingOptions
- Includes:
- Enumerable
- Defined in:
- lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb
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
-
TransparencySort
SketchUp 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
-
FaceColorMode
This option was previously included but it was ineffective.
Added in SketchUp 2020.0:
-
ROPDrawHiddenGeometry
-
ROPDrawHiddenObjects
Constant Summary collapse
- ROPAssign =
Constants
nil
- ROPDrawHidden =
Stub value.
nil
- ROPDrawHiddenGeometry =
Stub value.
nil
- ROPDrawHiddenObjects =
Stub value.
nil
- ROPEditComponent =
Stub value.
nil
- ROPSectionDisplayTurnedOff =
Stub value.
nil
- ROPSetBackgroundColor =
Stub value.
nil
- ROPSetConstructionColor =
Stub value.
nil
- ROPSetDepthQueEdges =
Stub value.
nil
- ROPSetDepthQueWidth =
Stub value.
nil
- ROPSetDisplayColorByLayer =
Stub value.
nil
- ROPSetDisplayDims =
Stub value.
nil
- ROPSetDisplayFog =
Stub value.
nil
- ROPSetDisplayInstanceAxes =
Stub value.
nil
- ROPSetDisplaySketchAxes =
Stub value.
nil
- ROPSetDisplayText =
Stub value.
nil
- ROPSetDisplayWatermarks =
Stub value.
nil
- ROPSetDrawBackEdges =
Stub value.
nil
- ROPSetDrawGround =
Stub value.
nil
- ROPSetDrawHorizon =
Stub value.
nil
- ROPSetDrawUnderground =
Stub value.
nil
- ROPSetEdgeColorMode =
Stub value.
nil
- ROPSetEdgeDisplayMode =
Stub value.
nil
- ROPSetEdgeType =
Stub value.
nil
- ROPSetExtendEdges =
Stub value.
nil
- ROPSetExtendLines =
Stub value.
nil
- ROPSetFaceColor =
Stub value.
nil
- ROPSetFaceColorMode =
Stub value.
nil
- ROPSetFogColor =
Stub value.
nil
- ROPSetFogDist =
Stub value.
nil
- ROPSetFogHint =
Stub value.
nil
- ROPSetFogUseBkColor =
Stub value.
nil
- ROPSetForegroundColor =
Stub value.
nil
- ROPSetGroundColor =
Stub value.
nil
- ROPSetGroundTransparency =
Stub value.
nil
- ROPSetHideConstructionGeometry =
Stub value.
nil
- ROPSetHighlightColor =
Stub value.
nil
- ROPSetJitterEdges =
Stub value.
nil
- ROPSetLineEndEdges =
Stub value.
nil
- ROPSetLineEndWidth =
Stub value.
nil
- ROPSetLineExtension =
Stub value.
nil
- ROPSetLineStyleEdges =
Stub value.
nil
- ROPSetLockedColor =
Stub value.
nil
- ROPSetMaterialTransparency =
Stub value.
nil
- ROPSetModelTransparency =
Stub value.
nil
- ROPSetPhotomatchBackgroundOpacity =
Stub value.
nil
- ROPSetPhotomatchDrawBackground =
Stub value.
nil
- ROPSetPhotomatchDrawOverlay =
Stub value.
nil
- ROPSetPhotomatchOverlayOpacity =
Stub value.
nil
- ROPSetProfileEdges =
Stub value.
nil
- ROPSetProfileWidth =
Stub value.
nil
- ROPSetProfilesOnlyEdges =
Stub value.
nil
- ROPSetRenderMode =
Stub value.
nil
- ROPSetSectionActiveColor =
Stub value.
nil
- ROPSetSectionCutFilled =
Stub value.
nil
- ROPSetSectionCutWidth =
Stub value.
nil
- ROPSetSectionDefaultCutColor =
Stub value.
nil
- ROPSetSectionDefaultFillColor =
Stub value.
nil
- ROPSetSectionDisplayMode =
Stub value.
nil
- ROPSetSectionInactiveColor =
Stub value.
nil
- ROPSetSkyColor =
Stub value.
nil
- ROPSetTexture =
Stub value.
nil
- ROPSetTransparencyObsolete =
Stub value.
nil
- ROPSetXRayOpacity =
Stub value.
nil
- ROPTransparencySortMethod =
Stub value.
nil
Class Method Summary collapse
-
.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 Summary collapse
-
#[](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
Methods inherited from Entity
#attribute_dictionaries, #attribute_dictionary, #delete_attribute, #deleted?, #entityID, #get_attribute, #inspect, #model, #parent, #persistent_id, #set_attribute, #to_s, #typename, #valid?
Class Method Details
.each_key {|key| ... } ⇒ nil
The each_key method iterates through all of the rendering options keys.
177 178 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 177 def self.each_key end |
Instance Method Details
#[](key) ⇒ Object?
The #[] method is used to get the value of a rendering option.
204 205 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 204 def [](key) end |
#[]=(key, value) ⇒ Object
The set value []= method is used to set the value in the array of rendering options.
222 223 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 222 def []=(key, value) end |
#add_observer(observer) ⇒ Boolean
The add_observer method is used to add an observer to the current object.
237 238 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 237 def add_observer(observer) end |
#count ⇒ Integer
The #count method is inherited from the Enumerable
mix-in module.
249 250 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 249 def count end |
#each {|key, value| ... } ⇒ nil
The #each method iterates through all of the rendering options key/value pairs.
273 274 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 273 def each end |
#each_key {|key| ... } ⇒ nil
The each_key method iterates through all of the rendering options keys.
288 289 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 288 def each_key end |
#each_pair ⇒ nil
The #each_pair method is an alias for #each.
303 304 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 303 def each_pair end |
#keys ⇒ Array<String>
The keys method returns an array with all of the attribute keys.
314 315 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 314 def keys end |
#length ⇒ Integer
The #length method returns the number of options in the rendering options collection.
329 330 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 329 def length end |
#remove_observer(observer) ⇒ Boolean
The remove_observer method is used to remove an observer from the current object.
347 348 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 347 def remove_observer(observer) end |