Class: Google::Apis::PolyV1::PresentationParams

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/poly_v1/classes.rb,
generated/google/apis/poly_v1/representations.rb,
generated/google/apis/poly_v1/representations.rb

Overview

Hints for displaying the asset, based on information available when the asset was uploaded.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PresentationParams

Returns a new instance of PresentationParams



490
491
492
# File 'generated/google/apis/poly_v1/classes.rb', line 490

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#background_colorString

A background color which could be used for displaying the 3D asset in a 'thumbnail' or 'palette' style view. Authors have the option to set this background color when publishing or editing their asset. This is represented as a six-digit hexademical triplet specifying the RGB components of the background color, e.g. #FF0000 for Red. Corresponds to the JSON property backgroundColor

Returns:

  • (String)


475
476
477
# File 'generated/google/apis/poly_v1/classes.rb', line 475

def background_color
  @background_color
end

#color_spaceString

The materials' diffuse/albedo color. This does not apply to vertex colors or texture maps. Corresponds to the JSON property colorSpace

Returns:

  • (String)


481
482
483
# File 'generated/google/apis/poly_v1/classes.rb', line 481

def color_space
  @color_space
end

#orienting_rotationGoogle::Apis::PolyV1::Quaternion

A Quaternion. Please note: if in the response you see "w: 1" and nothing else this is the default value of [0, 0, 0, 1] where x,y, and z are 0. Corresponds to the JSON property orientingRotation



488
489
490
# File 'generated/google/apis/poly_v1/classes.rb', line 488

def orienting_rotation
  @orienting_rotation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



495
496
497
498
499
# File 'generated/google/apis/poly_v1/classes.rb', line 495

def update!(**args)
  @background_color = args[:background_color] if args.key?(:background_color)
  @color_space = args[:color_space] if args.key?(:color_space)
  @orienting_rotation = args[:orienting_rotation] if args.key?(:orienting_rotation)
end