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 102Constants nil
- 
    ROPDrawHidden =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 103Stub value. nil
- 
    ROPDrawHiddenGeometry =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 104Stub value. nil
- 
    ROPDrawHiddenObjects =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 105Stub value. nil
- 
    ROPEditComponent =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 106Stub value. nil
- 
    ROPSectionDisplayTurnedOff =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 107Stub value. nil
- 
    ROPSetAODistance =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 108Stub value. nil
- 
    ROPSetAOEnabled =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 109Stub value. nil
- 
    ROPSetAOIntensity =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 110Stub value. nil
- 
    ROPSetBackgroundColor =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 111Stub value. nil
- 
    ROPSetConstructionColor =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 112Stub value. nil
- 
    ROPSetDepthQueEdges =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 113Stub value. nil
- 
    ROPSetDepthQueWidth =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 114Stub value. nil
- 
    ROPSetDisplayColorByLayer =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 115Stub value. nil
- 
    ROPSetDisplayDims =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 116Stub value. nil
- 
    ROPSetDisplayFog =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 117Stub value. nil
- 
    ROPSetDisplayInstanceAxes =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 118Stub value. nil
- 
    ROPSetDisplaySketchAxes =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 119Stub value. nil
- 
    ROPSetDisplayText =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 120Stub value. nil
- 
    ROPSetDisplayWatermarks =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 121Stub value. nil
- 
    ROPSetDrawBackEdges =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 122Stub value. nil
- 
    ROPSetDrawGround =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 123Stub value. nil
- 
    ROPSetDrawHorizon =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 124Stub value. nil
- 
    ROPSetDrawUnderground =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 125Stub value. nil
- 
    ROPSetEdgeColorMode =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 126Stub value. nil
- 
    ROPSetEdgeDisplayMode =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 127Stub value. nil
- 
    ROPSetEdgeType =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 128Stub value. nil
- 
    ROPSetExtendEdges =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 129Stub value. nil
- 
    ROPSetExtendLines =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 130Stub value. nil
- 
    ROPSetFaceColor =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 131Stub value. nil
- 
    ROPSetFaceColorMode =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 132Stub value. nil
- 
    ROPSetFogColor =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 133Stub value. nil
- 
    ROPSetFogDist =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 134Stub value. nil
- 
    ROPSetFogHint =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 135Stub value. nil
- 
    ROPSetFogUseBkColor =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 136Stub value. nil
- 
    ROPSetForegroundColor =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 137Stub value. nil
- 
    ROPSetGroundColor =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 138Stub value. nil
- 
    ROPSetGroundTransparency =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 139Stub value. nil
- 
    ROPSetHideConstructionGeometry =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 140Stub value. nil
- 
    ROPSetHighlightColor =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 141Stub value. nil
- 
    ROPSetHorizonColor =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 142Stub value. nil
- 
    ROPSetJitterEdges =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 143Stub value. nil
- 
    ROPSetLineEndEdges =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 144Stub value. nil
- 
    ROPSetLineEndWidth =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 145Stub value. nil
- 
    ROPSetLineExtension =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 146Stub value. nil
- 
    ROPSetLineStyleEdges =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 147Stub value. nil
- 
    ROPSetLockedColor =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 148Stub value. nil
- 
    ROPSetMaterialTransparency =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 149Stub value. nil
- 
    ROPSetModelTransparency =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 150Stub value. nil
- 
    ROPSetPhotomatchBackgroundOpacity =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 151Stub value. nil
- 
    ROPSetPhotomatchDrawBackground =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 152Stub value. nil
- 
    ROPSetPhotomatchDrawOverlay =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 153Stub value. nil
- 
    ROPSetPhotomatchOverlayOpacity =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 154Stub value. nil
- 
    ROPSetProfileEdges =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 155Stub value. nil
- 
    ROPSetProfileWidth =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 156Stub value. nil
- 
    ROPSetProfilesOnlyEdges =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 157Stub value. nil
- 
    ROPSetRenderMode =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 158Stub value. nil
- 
    ROPSetSectionActiveColor =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 159Stub value. nil
- 
    ROPSetSectionCutFilled =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 160Stub value. nil
- 
    ROPSetSectionCutWidth =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 161Stub value. nil
- 
    ROPSetSectionDefaultCutColor =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 162Stub value. nil
- 
    ROPSetSectionDefaultFillColor =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 163Stub value. nil
- 
    ROPSetSectionDisplayMode =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 164Stub value. nil
- 
    ROPSetSectionInactiveColor =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 165Stub value. nil
- 
    ROPSetSkyColor =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 166Stub value. nil
- 
    ROPSetTexture =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 167Stub value. nil
- 
    ROPSetTransparencyObsolete =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 168Stub value. nil
- 
    ROPSetXRayOpacity =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 169Stub value. nil
- 
    ROPTransparencySortMethod =
    # File 'lib/sketchup-api-stubs/stubs/Sketchup/RenderingOptions.rb', line 170Stub 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.