Class: Sketchup::RenderingOptions
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 #
- Sketchup::RenderingOptions::ROPAssign
- Sketchup::RenderingOptions::ROPDrawHidden
- Sketchup::RenderingOptions::ROPDrawHiddenGeometry
- Sketchup::RenderingOptions::ROPDrawHiddenObjects
- Sketchup::RenderingOptions::ROPEditComponent
- Sketchup::RenderingOptions::ROPSectionDisplayTurnedOff
- Sketchup::RenderingOptions::ROPSetBackgroundColor
- Sketchup::RenderingOptions::ROPSetConstructionColor
- Sketchup::RenderingOptions::ROPSetDepthQueEdges
- Sketchup::RenderingOptions::ROPSetDepthQueWidth
- Sketchup::RenderingOptions::ROPSetDisplayColorByLayer
- Sketchup::RenderingOptions::ROPSetDisplayDims
- Sketchup::RenderingOptions::ROPSetDisplayFog
- Sketchup::RenderingOptions::ROPSetDisplayInstanceAxes
- Sketchup::RenderingOptions::ROPSetDisplaySketchAxes
- Sketchup::RenderingOptions::ROPSetDisplayText
- Sketchup::RenderingOptions::ROPSetDisplayWatermarks
- Sketchup::RenderingOptions::ROPSetDrawBackEdges
- Sketchup::RenderingOptions::ROPSetDrawGround
- Sketchup::RenderingOptions::ROPSetDrawHorizon
- Sketchup::RenderingOptions::ROPSetDrawUnderground
- Sketchup::RenderingOptions::ROPSetEdgeColorMode
- Sketchup::RenderingOptions::ROPSetEdgeDisplayMode
- Sketchup::RenderingOptions::ROPSetEdgeType
- Sketchup::RenderingOptions::ROPSetExtendEdges
- Sketchup::RenderingOptions::ROPSetExtendLines
- Sketchup::RenderingOptions::ROPSetFaceColor
- Sketchup::RenderingOptions::ROPSetFogColor
- Sketchup::RenderingOptions::ROPSetFogDist
- Sketchup::RenderingOptions::ROPSetFogHint
- Sketchup::RenderingOptions::ROPSetFogUseBkColor
- Sketchup::RenderingOptions::ROPSetForegroundColor
- Sketchup::RenderingOptions::ROPSetGroundColor
- Sketchup::RenderingOptions::ROPSetGroundTransparency
- Sketchup::RenderingOptions::ROPSetHideConstructionGeometry
- Sketchup::RenderingOptions::ROPSetHighlightColor
- Sketchup::RenderingOptions::ROPSetJitterEdges
- Sketchup::RenderingOptions::ROPSetLineEndEdges
- Sketchup::RenderingOptions::ROPSetLineEndWidth
- Sketchup::RenderingOptions::ROPSetLineExtension
- Sketchup::RenderingOptions::ROPSetLineStyleEdges
- Sketchup::RenderingOptions::ROPSetLockedColor
- Sketchup::RenderingOptions::ROPSetMaterialTransparency
- Sketchup::RenderingOptions::ROPSetModelTransparency
- Sketchup::RenderingOptions::ROPSetPhotomatchBackgroundOpacity
- Sketchup::RenderingOptions::ROPSetPhotomatchDrawBackground
- Sketchup::RenderingOptions::ROPSetPhotomatchDrawOverlay
- Sketchup::RenderingOptions::ROPSetPhotomatchOverlayOpacity
- Sketchup::RenderingOptions::ROPSetProfileEdges
- Sketchup::RenderingOptions::ROPSetProfilesOnlyEdges
- Sketchup::RenderingOptions::ROPSetProfileWidth
- Sketchup::RenderingOptions::ROPSetRenderMode
- Sketchup::RenderingOptions::ROPSetSectionActiveColor
- Sketchup::RenderingOptions::ROPSetSectionCutFilled
- Sketchup::RenderingOptions::ROPSetSectionCutWidth
- Sketchup::RenderingOptions::ROPSetSectionDefaultCutColor
- Sketchup::RenderingOptions::ROPSetSectionDefaultFillColor
- Sketchup::RenderingOptions::ROPSetSectionDisplayMode
- Sketchup::RenderingOptions::ROPSetSectionInactiveColor
- Sketchup::RenderingOptions::ROPSetSkyColor
- Sketchup::RenderingOptions::ROPSetTexture
- Sketchup::RenderingOptions::ROPSetTransparencyObsolete
- Sketchup::RenderingOptions::ROPSetXRayOpacity
- Sketchup::RenderingOptions::ROPTransparencySortMethod
- Sketchup::RenderingOptions::ROPSetFaceColorMode
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.
Instance Method Details
↑ #[]=(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.
↑ #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.
↑ #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.