qbruntime.type.Scale Class Reference

qbruntime.type.Scale Class Reference#

SDK qb Runtime Library: qbruntime.type.Scale Class Reference
SDK qb Runtime Library v1.2
MCS001-EN

Struct for scale values. More...

Public Member Functions

 __init__ (self, float scale, bool is_uniform, List[float] scale_list)
 from_cpp (cls, _cQbRuntime.Scale _scale)
List[float] scale_list (self)
float scale (self)
bool is_uniform (self)
 scale_list (self, List[float] value)
 scale (self, float value)
 is_uniform (self, bool value)
float __getitem__ (self, int i)
 Returns the scale value at the specified index.
 __repr__ (self)

Protected Attributes

 _scale = _cQbRuntime.Scale()

Detailed Description

Struct for scale values.

Definition at line 56 of file type.py.

Constructor & Destructor Documentation

◆ __init__()

qbruntime.type.Scale.__init__ ( self,
float scale,
bool is_uniform,
List[float] scale_list )

Definition at line 59 of file type.py.

Member Function Documentation

◆ from_cpp()

qbruntime.type.Scale.from_cpp ( cls,
_cQbRuntime.Scale _scale )

Definition at line 66 of file type.py.

◆ scale_list() [1/2]

List[float] qbruntime.type.Scale.scale_list ( self)

Definition at line 70 of file type.py.

◆ scale() [1/2]

float qbruntime.type.Scale.scale ( self)

Definition at line 74 of file type.py.

◆ is_uniform() [1/2]

bool qbruntime.type.Scale.is_uniform ( self)

Definition at line 78 of file type.py.

◆ scale_list() [2/2]

qbruntime.type.Scale.scale_list ( self,
List[float] value )

Definition at line 82 of file type.py.

◆ scale() [2/2]

qbruntime.type.Scale.scale ( self,
float value )

Definition at line 86 of file type.py.

◆ is_uniform() [2/2]

qbruntime.type.Scale.is_uniform ( self,
bool value )

Definition at line 90 of file type.py.

◆ __getitem__()

float qbruntime.type.Scale.__getitem__ ( self,
int i )

Returns the scale value at the specified index.

Parameters
[in]iIndex.
Returns
Scale value.

Definition at line 93 of file type.py.

◆ __repr__()

qbruntime.type.Scale.__repr__ ( self)

Definition at line 102 of file type.py.

Member Data Documentation

◆ _scale

qbruntime.type.Scale._scale = _cQbRuntime.Scale()
protected

Definition at line 60 of file type.py.


The documentation for this class was generated from the following file: