rfm2  22.0
A python-based rewrite of RenderMan for Maya
 All Classes Namespaces Files Functions Variables Pages
rfm2.vp.geo.rounded_rect.RoundedRect Class Reference
+ Inheritance diagram for rfm2.vp.geo.rounded_rect.RoundedRect:
+ Collaboration diagram for rfm2.vp.geo.rounded_rect.RoundedRect:

Public Member Functions

def __init__
 
def shape
 
def is_static
 
def vtx_buffer_count
 
def vtx_buffer
 
def set_input_params
 
def opacity
 
- Public Member Functions inherited from rfm2.vp.geo.base.Vp2GeometryBase
def __init__
 
def defaulted_value
 
def is_static
 
def instance_draw_method
 
def instance_display_mode
 
def instance_vp2_primitive
 
def instance_enabled
 
def opacity
 
def get_input_params
 
def set_input_params
 
def vtx_buffer_count
 
def vtx_buffer
 
def has_uvs
 
def uv_buffer
 
def color_buffer
 
def idx_buffer
 

Public Attributes

 subdivs
 
 axis
 
 edge_mode
 
 xy
 
 width
 
 height
 
 left
 
 right
 
 top
 
 bottom
 
 radius
 
 scaleWidth
 
 scaleHeight
 
 edge
 
 leftEdge
 
 rightEdge
 
 topEdge
 
 bottomEdge
 
 invert
 
- Public Attributes inherited from rfm2.vp.geo.base.Vp2GeometryBase
 id
 
 textured
 
 num_instances
 
 inst_display_mode
 
 inst_draw_method
 
 inst_index_buffer
 
 inst_vp_shader
 
 method
 
 kwargs
 
 is_deforming_when_transformed
 

Static Public Attributes

dictionary static_shp = {}
 

Constructor & Destructor Documentation

def rfm2.vp.geo.rounded_rect.RoundedRect.__init__ (   self,
  jsondict 
)

Member Function Documentation

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.
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.
def rfm2.vp.geo.rounded_rect.RoundedRect.set_input_params (   self,
  obj,
  kwargs 
)
Update internal input param values using kwargs.
def rfm2.vp.geo.rounded_rect.RoundedRect.shape (   self)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

def rfm2.vp.geo.rounded_rect.RoundedRect.vtx_buffer_count (   self)
Return the number of vertices in this buffer.

+ Here is the call graph for this function:

Member Data Documentation

rfm2.vp.geo.rounded_rect.RoundedRect.axis
rfm2.vp.geo.rounded_rect.RoundedRect.bottom
rfm2.vp.geo.rounded_rect.RoundedRect.bottomEdge
rfm2.vp.geo.rounded_rect.RoundedRect.edge
rfm2.vp.geo.rounded_rect.RoundedRect.edge_mode
rfm2.vp.geo.rounded_rect.RoundedRect.height
rfm2.vp.geo.rounded_rect.RoundedRect.invert
rfm2.vp.geo.rounded_rect.RoundedRect.left
rfm2.vp.geo.rounded_rect.RoundedRect.leftEdge
rfm2.vp.geo.rounded_rect.RoundedRect.radius
rfm2.vp.geo.rounded_rect.RoundedRect.right
rfm2.vp.geo.rounded_rect.RoundedRect.rightEdge
rfm2.vp.geo.rounded_rect.RoundedRect.scaleHeight
rfm2.vp.geo.rounded_rect.RoundedRect.scaleWidth
dictionary rfm2.vp.geo.rounded_rect.RoundedRect.static_shp = {}
static
rfm2.vp.geo.rounded_rect.RoundedRect.subdivs
rfm2.vp.geo.rounded_rect.RoundedRect.top
rfm2.vp.geo.rounded_rect.RoundedRect.topEdge
rfm2.vp.geo.rounded_rect.RoundedRect.width
rfm2.vp.geo.rounded_rect.RoundedRect.xy

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