GraphProcessor.h
Go to the documentation of this file.
1// *****************************************************************
2// Filename: GraphProcessor.h
3// Copyright: Kai Welke, Chair Prof. Dillmann (IAIM),
4// Institute for Computer Science and Engineering (CSE),
5// University of Karlsruhe. All rights reserved.
6// Author: Kai Welke
7// Date: 12.06.2007
8// *****************************************************************
9
10#pragma once
11
12// *****************************************************************
13// forward declarations
14// *****************************************************************
15
16// *****************************************************************
17// includes
18// *****************************************************************
19#include "SphericalGraph.h"
20
21// *****************************************************************
22// namespace GraphProcessor
23// *****************************************************************
25{
26 // graph operations
27 void copyGraphNodesAndEdges(CSphericalGraph* pSrcGraph, CSphericalGraph* pDstGraph);
28
29 // graph coordinate transformations
32 void invertPhi(CSphericalGraph* pGraph);
33 void invertTheta(CSphericalGraph* pGraph);
34
35 // edge operations
36 int findEdge(CSphericalGraph* pGraph, int nIndex1, int nIndex2);
37 bool isEdgePresent(CSphericalGraph* pGraph, int nIndex1, int nIndex2);
38
39 // neighbour and node operations
41 void findClosestNeighbours(CSphericalGraph* pGraph, int& s, int& t);
42 int getDelaunayNeighbour(CSphericalGraph* pGraph, CSGEdge* pEdge);
43
44 // circumcircle operations
46 int nIndex1,
47 int nIndex2,
48 int nIndex3,
49 int nPointIndex,
50 bool& bInside);
52 int nIndex1,
53 int nIndex2,
54 int nIndex3,
55 TSphereCoord& center,
56 float& fRadius);
57}; // namespace GraphProcessor
int findClosestNode(CSphericalGraph *pGraph, TSphereCoord coord)
void findClosestNeighbours(CSphericalGraph *pGraph, int &s, int &t)
void inverseTransform(CSphericalGraph *pGraph, TTransform transform)
void copyGraphNodesAndEdges(CSphericalGraph *pSrcGraph, CSphericalGraph *pDstGraph)
bool insideCircumcircle(CSphericalGraph *pGraph, int nIndex1, int nIndex2, int nIndex3, int nPointIndex, bool &bInside)
void invertTheta(CSphericalGraph *pGraph)
int getDelaunayNeighbour(CSphericalGraph *pGraph, CSGEdge *pEdge)
bool getCircumcircle(CSphericalGraph *pGraph, int nIndex1, int nIndex2, int nIndex3, TSphereCoord &center, float &fRadius)
void transform(CSphericalGraph *pGraph, TTransform transform)
void invertPhi(CSphericalGraph *pGraph)
bool isEdgePresent(CSphericalGraph *pGraph, int nIndex1, int nIndex2)
int findEdge(CSphericalGraph *pGraph, int nIndex1, int nIndex2)