Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Özgür Ozan Sen
ogs
Commits
d67d9c61
Commit
d67d9c61
authored
10 years ago
by
Tom Fischer
Browse files
Options
Downloads
Patches
Plain Diff
[GeoLib] SimplePolygonTree: Documentation.
parent
4c64d8ac
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GeoLib/SimplePolygonTree.h
+15
-2
15 additions, 2 deletions
GeoLib/SimplePolygonTree.h
with
15 additions
and
2 deletions
GeoLib/SimplePolygonTree.h
+
15
−
2
View file @
d67d9c61
...
...
@@ -24,15 +24,28 @@ namespace GeoLib
{
/**
* \brief This class computes and stores the topological relations between
* polygons. Every node of the SimplePolygonTree represents a polygon.
* polygons. Every node of the SimplePolygonTree represents a polygon. A
* child node c of a parent node p mean that the polygon represented by c
* is contained in the polygon represented by p.
*/
class
SimplePolygonTree
{
public:
/** Creates a node of a tree containing a simple polygon.
* @param polygon the polygon represented by this tree node
* @param parent pointer to the parent node within the tree or nullptr
* (if SimplePolygonTree node is the root node of the tree)
*/
SimplePolygonTree
(
Polygon
*
polygon
,
SimplePolygonTree
*
parent
);
/** Destructor: Attention: does not destroy the polygon! */
virtual
~
SimplePolygonTree
();
/** Checks if the polygon represented by the given polygon tree node
* is inside this node polygon.
*/
bool
isPolygonInside
(
const
SimplePolygonTree
*
polygon_tree
)
const
;
/** Either insert the given SimplePolygonTree in one of the existing
* childs or as a new child.
*/
void
insertSimplePolygonTree
(
SimplePolygonTree
*
polygon_tree
);
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment