Gnash
0.8.10
|
Classes | |
class | Point2d |
2D Point class More... | |
class | Range2d |
2d Range template class More... | |
class | SnappingRanges2d |
Enumerations | |
enum | RangeKind { finiteRange, nullRange, worldRange } |
Kinds of a range. More... | |
Functions | |
std::ostream & | operator<< (std::ostream &os, const Point2d &p) |
Output operator. | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const Range2d< T > &rect) |
template<typename T > | |
bool | operator== (const Range2d< T > &r1, const Range2d< T > &r2) |
template<typename T > | |
bool | operator!= (const Range2d< T > &r1, const Range2d< T > &r2) |
template<typename T > | |
bool | Intersect (const Range2d< T > &r1, const Range2d< T > &r2) |
Return true of the two ranges intersect (boundaries included) | |
template<typename T > | |
Range2d< T > | Union (const Range2d< T > &r1, const Range2d< T > &r2) |
Return a rectangle being the union of the two rectangles. | |
template<typename T > | |
Range2d< T > | Intersection (const Range2d< T > &r1, const Range2d< T > &r2) |
Return a rectangle being the intersetion of the two rectangles. | |
template<class T > | |
std::ostream & | operator<< (std::ostream &os, const SnappingRanges2d< T > &r) |
bool | pointTest (const std::vector< Path > &paths, const std::vector< LineStyle > &lineStyles, boost::int32_t x, boost::int32_t y, const SWFMatrix &wm) |
bool gnash::geometry::Intersect | ( | const Range2d< T > & | r1, |
const Range2d< T > & | r2 | ||
) | [inline] |
Return true of the two ranges intersect (boundaries included)
Range2d<T> gnash::geometry::Intersection | ( | const Range2d< T > & | r1, |
const Range2d< T > & | r2 | ||
) | [inline] |
Return a rectangle being the intersetion of the two rectangles.
Any NULL operand will make the result also NULL.
References nullRange.
Referenced by gnash::AOS4AggGlue::setInvalidatedRegions(), gnash::AOS4CairoGlue::setInvalidatedRegions(), gnash::gui::FBAggGlue::setInvalidatedRegions(), gnash::gui::FBOvgGlue::setInvalidatedRegions(), gnash::FltkGui::setInvalidatedRegions(), gnash::GtkGui::setInvalidatedRegions(), gnash::HaikuAggGlue::setInvalidatedRegions(), gnash::KdeAggGlue::setInvalidatedRegions(), gnash::Qt4Gui::setInvalidatedRegions(), gnash::SdlAggGlue::setInvalidatedRegions(), and gnash::geometry::SnappingRanges2d< T >::intersect().
bool gnash::geometry::operator!= | ( | const Range2d< T > & | r1, |
const Range2d< T > & | r2 | ||
) | [inline] |
std::ostream& gnash::geometry::operator<< | ( | std::ostream & | os, |
const Point2d & | p | ||
) | [inline] |
Output operator.
References gnash::geometry::Point2d::x, and gnash::geometry::Point2d::y.
std::ostream& gnash::geometry::operator<< | ( | std::ostream & | os, |
const SnappingRanges2d< T > & | r | ||
) |
References gnash::key::r, and gnash::key::R.
std::ostream& gnash::geometry::operator<< | ( | std::ostream & | os, |
const Range2d< T > & | rect | ||
) | [inline] |
bool gnash::geometry::operator== | ( | const Range2d< T > & | r1, |
const Range2d< T > & | r2 | ||
) | [inline] |
bool gnash::geometry::pointTest | ( | const std::vector< Path > & | paths, |
const std::vector< LineStyle > & | lineStyles, | ||
boost::int32_t | x, | ||
boost::int32_t | y, | ||
const SWFMatrix & | wm | ||
) |
References gnash::Path::m_edges, gnash::Path::ap, gnash::geometry::Point2d::x, gnash::geometry::Point2d::y, gnash::Path::m_new_shape, gnash::Path::empty(), gnash::Path::m_line, assert, gnash::LineStyle::getThickness(), gnash::SWFMatrix::get_x_scale(), gnash::SWFMatrix::get_y_scale(), LOG_ONCE, _, dist, gnash::Path::withinSquareDistance(), gnash::Edge::ap, gnash::Edge::straight(), y, gnash::Edge::cp, gnash::Path::m_fill0, gnash::Path::m_fill1, and x.
Referenced by gnash::SWF::DefineShapeTag::pointTestLocal(), gnash::DynamicShape::pointTestLocal(), and gnash::MorphShape::pointInShape().
Range2d<T> gnash::geometry::Union | ( | const Range2d< T > & | r1, |
const Range2d< T > & | r2 | ||
) | [inline] |
Return a rectangle being the union of the two rectangles.