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

namespace  HuginBase

Enumerations

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

Functions

bool HuginBase::clip_isSide (const FDiff2D p, const vigra::Rect2D r, const clipSide side)
FDiff2D HuginBase::clip_getIntersection (const FDiff2D p, const 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 FDiff2D p, const FDiff2D center, const double radius)
 check if point is inside circle
std::vector< FDiff2DHuginBase::clip_getIntersectionCircle (const FDiff2D p, const FDiff2D s, const FDiff2D center, const double radius)
 returns intersection of line and circle
double HuginBase::angle_between (const FDiff2D a, const FDiff2D b)
 calculates angle between vector a and b in radians
void HuginBase::generateArc (VectorPolygon &poly, const FDiff2D s, const 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
void HuginBase::LoadMaskFromStream (std::istream &stream, vigra::Size2D &imageSize, MaskPolygonVector &newMasks, size_t imgNr)
 load the mask from stream
void HuginBase::SaveMaskToStream (std::ostream &stream, vigra::Size2D imageSize, MaskPolygon &maskToWrite, size_t imgNr)
 save the mask into stream


Generated on 30 Oct 2014 for Hugintrunk by  doxygen 1.4.7