|
def | __init__ (self, jsondict) |
|
def | shape (self) |
|
def | is_static (self) |
|
def | vtx_buffer_count (self) |
|
def | vtx_buffer (self) |
|
def | set_input_params (self, obj, **kwargs) |
|
def | opacity (self) |
|
def | defaulted_value (self, name, default_val) |
|
def | instance_draw_method (self, instance_idx) |
|
def | instance_display_mode (self, instance_idx) |
|
def | instance_vp2_primitive (self, instance_idx) |
|
def | instance_enabled (self, instance_idx) |
|
def | get_input_params (self) |
|
def | vtx_buffer (self, **kwargs) |
|
def | has_uvs (self) |
|
def | uv_buffer (self) |
|
def | color_buffer (self) |
|
def | idx_buffer (self, idx_buffer, num_vtx, start_idx, inst_idx) |
|
◆ __init__()
def rfm2.vp.geo.rounded_rect.RoundedRect.__init__ |
( |
|
self, |
|
|
|
jsondict |
|
) |
| |
◆ is_static()
def rfm2.vp.geo.rounded_rect.RoundedRect.is_static |
( |
|
self | ) |
|
Tells the vp code if the geometry is static or deforming, like a spot
light frustum for example. Defaults to True.
Reimplemented from rfm2.vp.geo.base.Vp2GeometryBase.
◆ opacity()
def rfm2.vp.geo.rounded_rect.RoundedRect.opacity |
( |
|
self | ) |
|
Returns the opacity for that shape.
Rects in edge_mode have an opacity of 0.5, otherwise 1.0.
The 'invert' switch will invert the values.
Reimplemented from rfm2.vp.geo.base.Vp2GeometryBase.
◆ set_input_params()
def rfm2.vp.geo.rounded_rect.RoundedRect.set_input_params |
( |
|
self, |
|
|
|
obj, |
|
|
** |
kwargs |
|
) |
| |
◆ shape()
def rfm2.vp.geo.rounded_rect.RoundedRect.shape |
( |
|
self | ) |
|
◆ vtx_buffer()
def rfm2.vp.geo.rounded_rect.RoundedRect.vtx_buffer |
( |
|
self | ) |
|
Return a list of vertices (list) in local space.
We process each corner one by one, applying the following
transformations:
1. Apply the radius, which scales the corner toward the rect's
center.
2. Apply the edge offset, enlarging the shape.
3. Apply the global scale controls
◆ vtx_buffer_count()
def rfm2.vp.geo.rounded_rect.RoundedRect.vtx_buffer_count |
( |
|
self | ) |
|
◆ axis
rfm2.vp.geo.rounded_rect.RoundedRect.axis |
◆ bottom
rfm2.vp.geo.rounded_rect.RoundedRect.bottom |
◆ bottomEdge
rfm2.vp.geo.rounded_rect.RoundedRect.bottomEdge |
◆ edge
rfm2.vp.geo.rounded_rect.RoundedRect.edge |
◆ edge_mode
rfm2.vp.geo.rounded_rect.RoundedRect.edge_mode |
◆ height
rfm2.vp.geo.rounded_rect.RoundedRect.height |
◆ invert
rfm2.vp.geo.rounded_rect.RoundedRect.invert |
◆ left
rfm2.vp.geo.rounded_rect.RoundedRect.left |
◆ leftEdge
rfm2.vp.geo.rounded_rect.RoundedRect.leftEdge |
◆ radius
rfm2.vp.geo.rounded_rect.RoundedRect.radius |
◆ right
rfm2.vp.geo.rounded_rect.RoundedRect.right |
◆ rightEdge
rfm2.vp.geo.rounded_rect.RoundedRect.rightEdge |
◆ scaleHeight
rfm2.vp.geo.rounded_rect.RoundedRect.scaleHeight |
◆ scaleWidth
rfm2.vp.geo.rounded_rect.RoundedRect.scaleWidth |
◆ static_shp
dictionary rfm2.vp.geo.rounded_rect.RoundedRect.static_shp = {} |
|
static |
◆ subdivs
rfm2.vp.geo.rounded_rect.RoundedRect.subdivs |
◆ top
rfm2.vp.geo.rounded_rect.RoundedRect.top |
◆ topEdge
rfm2.vp.geo.rounded_rect.RoundedRect.topEdge |
◆ width
rfm2.vp.geo.rounded_rect.RoundedRect.width |
◆ xy
rfm2.vp.geo.rounded_rect.RoundedRect.xy |
The documentation for this class was generated from the following file:
- /Users/plp/Perforce/plp_thebridge_rman_24_dev/rat/apps/rfm/scripts/rfm2/vp/geo/rounded_rect.py