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 // *****************************************************************
24 namespace GraphProcessor
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
40  int findClosestNode(CSphericalGraph* pGraph, TSphereCoord coord);
41  void findClosestNeighbours(CSphericalGraph* pGraph, int& s, int& t);
42  int getDelaunayNeighbour(CSphericalGraph* pGraph, CSGEdge* pEdge);
43 
44  // circumcircle operations
45  bool insideCircumcircle(CSphericalGraph* pGraph, int nIndex1, int nIndex2, int nIndex3, int nPointIndex, bool& bInside);
46  bool getCircumcircle(CSphericalGraph* pGraph, int nIndex1, int nIndex2, int nIndex3, TSphereCoord& center, float& fRadius);
47 };
48 
GraphProcessor::findEdge
int findEdge(CSphericalGraph *pGraph, int nIndex1, int nIndex2)
Definition: GraphProcessor.cpp:159
GraphProcessor::insideCircumcircle
bool insideCircumcircle(CSphericalGraph *pGraph, int nIndex1, int nIndex2, int nIndex3, int nPointIndex, bool &bInside)
Definition: GraphProcessor.cpp:180
GraphProcessor::inverseTransform
void inverseTransform(CSphericalGraph *pGraph, TTransform transform)
Definition: GraphProcessor.cpp:38
GraphProcessor::copyGraphNodesAndEdges
void copyGraphNodesAndEdges(CSphericalGraph *pSrcGraph, CSphericalGraph *pDstGraph)
Definition: GraphProcessor.cpp:83
GraphProcessor::invertTheta
void invertTheta(CSphericalGraph *pGraph)
Definition: GraphProcessor.cpp:68
SphericalGraph.h
GraphProcessor::isEdgePresent
bool isEdgePresent(CSphericalGraph *pGraph, int nIndex1, int nIndex2)
Definition: GraphProcessor.cpp:288
GraphProcessor::findClosestNode
int findClosestNode(CSphericalGraph *pGraph, TSphereCoord coord)
Definition: GraphProcessor.cpp:105
TTransform
Definition: Structs.h:42
GraphProcessor::findClosestNeighbours
void findClosestNeighbours(CSphericalGraph *pGraph, int &s, int &t)
Definition: GraphProcessor.cpp:128
CSGEdge
Definition: SphericalGraph.h:31
GraphProcessor::getCircumcircle
bool getCircumcircle(CSphericalGraph *pGraph, int nIndex1, int nIndex2, int nIndex3, TSphereCoord &center, float &fRadius)
Definition: GraphProcessor.cpp:202
GraphProcessor::getDelaunayNeighbour
int getDelaunayNeighbour(CSphericalGraph *pGraph, CSGEdge *pEdge)
Definition: GraphProcessor.cpp:242
GraphProcessor::transform
void transform(CSphericalGraph *pGraph, TTransform transform)
Definition: GraphProcessor.cpp:23
CSphericalGraph
Definition: SphericalGraph.h:93
GraphProcessor
Definition: GraphProcessor.h:24
TSphereCoord
Definition: Structs.h:22
GraphProcessor::invertPhi
void invertPhi(CSphericalGraph *pGraph)
Definition: GraphProcessor.cpp:53
armarx::ctrlutil::s
double s(double t, double s0, double v0, double a0, double j)
Definition: CtrlUtil.h:33