Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Enumerations | Functions
Mask.cpp File Reference
#include <iostream>
#include <stdio.h>
#include "Mask.h"
#include <vector>
#include <panotools/PanoToolsInterface.h>
#include <panodata/PTScriptParsing.h>
Include dependency graph for Mask.cpp:

Go to the source code of this file.

Namespaces

 HuginBase
 mainly consists of wrapper around the pano tools library, to assist in ressource management and to provide a nicer interface.
 

Enumerations

enum  HuginBase::clipSide { HuginBase::clipLeft =0, HuginBase::clipRight, HuginBase::clipTop, HuginBase::clipBottom }
 

Functions

bool HuginBase::clip_isSide (const hugin_utils::FDiff2D p, const vigra::Rect2D r, const clipSide side)
 
hugin_utils::FDiff2D HuginBase::clip_getIntersection (const hugin_utils::FDiff2D p, const hugin_utils::FDiff2D q, const vigra::Rect2D r, const clipSide side)
 
VectorPolygon HuginBase::clip_onPlane (const VectorPolygon &polygon, const vigra::Rect2D r, const clipSide side)
 
bool HuginBase::clip_insideCircle (const hugin_utils::FDiff2D p, const hugin_utils::FDiff2D center, const double radius)
 check if point is inside circle More...
 
std::vector< hugin_utils::FDiff2DHuginBase::clip_getIntersectionCircle (const hugin_utils::FDiff2D p, const hugin_utils::FDiff2D s, const hugin_utils::FDiff2D center, const double radius)
 returns intersection of line and circle More...
 
double HuginBase::angle_between (const hugin_utils::FDiff2D a, const hugin_utils::FDiff2D b)
 calculates angle between vector a and b in radians More...
 
void HuginBase::generateArc (VectorPolygon &poly, const hugin_utils::FDiff2D s, const hugin_utils::FDiff2D center, const double radius, const bool clockwise)
 adds an arc with given radius at the end of the polygon, the point is not added to the arc More...
 
void HuginBase::LoadMaskFromStream (std::istream &stream, vigra::Size2D &imageSize, MaskPolygonVector &newMasks, size_t imgNr)
 load the mask from stream More...
 
void HuginBase::SaveMaskToStream (std::ostream &stream, vigra::Size2D imageSize, MaskPolygon &maskToWrite, size_t imgNr)
 save the mask into stream More...