FastUIDraw
Classes | Public Member Functions | Friends | List of all members
fastuidraw::FilledPath Class Reference

A FilledPath represents the data needed to draw a path filled. It contains -all- the data needed to fill a path regardless of the fill rule. More...

#include <filled_path.hpp>

Inheritance diagram for fastuidraw::FilledPath:
Inheritance graph
[legend]

Classes

class  ScratchSpace
 Opaque object to hold work room needed for functions of FilledPath that require scratch space. More...
 
class  Subset
 A Subset represents a handle to a portion of a FilledPath. The handle is invalid once the FilledPath from which it comes goes out of scope. Do not save these handle values without also saving a handle of the FilledPath from which they come. More...
 

Public Member Functions

const Rectbounding_box (void) const
 
unsigned int number_subsets (void) const
 
Subset root_subset (void) const
 
unsigned int select_subsets (ScratchSpace &scratch_space, c_array< const vec3 > clip_equations, const float3x3 &clip_matrix_local, unsigned int max_attribute_cnt, unsigned int max_index_cnt, c_array< unsigned int > dst) const
 
unsigned int select_subsets_no_culling (unsigned int max_attribute_cnt, unsigned int max_index_cnt, c_array< unsigned int > dst) const
 
Subset subset (unsigned int I) const
 
- Public Member Functions inherited from fastuidraw::reference_counted_base< T, Counter >
 reference_counted_base (void)
 

Friends

class TessellatedPath
 

Additional Inherited Members

- Static Public Member Functions inherited from fastuidraw::reference_counted_base< T, Counter >
static void add_reference (const reference_counted_base< T, Counter > *p)
 
static void remove_reference (const reference_counted_base< T, Counter > *p)
 

Detailed Description

A FilledPath represents the data needed to draw a path filled. It contains -all- the data needed to fill a path regardless of the fill rule.

Definition at line 52 of file filled_path.hpp.

Member Function Documentation

◆ bounding_box()

const Rect& fastuidraw::FilledPath::bounding_box ( void  ) const

Returns the the bounding box of the FilledPath.

◆ number_subsets()

unsigned int fastuidraw::FilledPath::number_subsets ( void  ) const

Returns the number of Subset objects of the FilledPath.

◆ root_subset()

Subset fastuidraw::FilledPath::root_subset ( void  ) const

Returns the root Subset, i.e. the Subset that encompasses the entire FilledPath.

◆ select_subsets()

unsigned int fastuidraw::FilledPath::select_subsets ( ScratchSpace scratch_space,
c_array< const vec3 clip_equations,
const float3x3 clip_matrix_local,
unsigned int  max_attribute_cnt,
unsigned int  max_index_cnt,
c_array< unsigned int >  dst 
) const

Fetch those Subset objects that have triangles that intersect a region specified by clip equations.

Parameters
scratch_spacescratch space for computations.
clip_equationsarray of clip equations
clip_matrix_local3x3 transformation from local (x, y, 1) coordinates to clip coordinates.
max_attribute_cntonly allow those Subset objects for which Subset::painter_data() have no more than max_attribute_cnt attributes.
max_index_cntonly allow those Subset objects for which Subset::painter_data() have no more than max_index_cnt attributes.
[out]dstlocation to which to write the Subset ID values
Returns
the number of Subset object ID's written to dst, that number is guaranteed to be no more than number_subsets().

◆ select_subsets_no_culling()

unsigned int fastuidraw::FilledPath::select_subsets_no_culling ( unsigned int  max_attribute_cnt,
unsigned int  max_index_cnt,
c_array< unsigned int >  dst 
) const

In contrast to select_subsets() which performs hierarchical culling against a set of clip equations, this routine performs no culling and returns the subsets needed to draw all of the FilledPath.

Parameters
max_attribute_cntonly allow those chunks for which have no more than max_attribute_cnt attributes
max_index_cntonly allow those chunks for which have no more than max_index_cnt indices
[out]dstlocation to which to write the Subset ID values
Returns
the number of Subset object ID's written to dst, that number is guaranteed to be no more than number_subsets().

◆ subset()

Subset fastuidraw::FilledPath::subset ( unsigned int  I) const

Return the named Subset object of the FilledPath.


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