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
-
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
Added in SketchUp 2024.0:
-
AmbientOcclusion
-
AmbientOcclusionDistance
-
AmbientOcclusionIntensity
Constant Summary
-
ROPAssign =
Constants
nil
-
ROPDrawHidden =
Stub value.
nil
-
ROPDrawHiddenGeometry =
Stub value.
nil
-
ROPDrawHiddenObjects =
Stub value.
nil
-
ROPEditComponent =
Stub value.
nil
-
ROPSectionDisplayTurnedOff =
Stub value.
nil
-
ROPSetAODistance =
Stub value.
nil
-
ROPSetAOEnabled =
Stub value.
nil
-
ROPSetAOIntensity =
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
-
ROPSetHorizonColor =
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
-
.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
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
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.