-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from ntkwan/Vi
Add ViewBox documentation
- Loading branch information
Showing
245 changed files
with
7,740 additions
and
5,087 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
@startuml | ||
|
||
|
||
|
||
|
||
|
||
/' Objects '/ | ||
|
||
class Parser { | ||
-Parser(const std::string& file_name) | ||
+~Parser() | ||
-parseCircle(rapidxml::xml_node<>* node, const ColorShape& fill_color, const ColorShape& stroke_color, float stroke_width) : Circle* | ||
-parseColor(rapidxml::xml_node<>* node, std::string color, std::string& id) : ColorShape | ||
-parseGradient(std::string id) : Gradient* | ||
+getRoot() : Group* | ||
-parseLine(rapidxml::xml_node<>* node, const ColorShape& stroke_color, float stroke_width) : Line* | ||
+{static} getInstance(const std::string& file_name) : Parser* | ||
-parsePath(rapidxml::xml_node<>* node, const ColorShape& fill_color, const ColorShape& stroke_color, float stroke_width) : Path* | ||
-parseRect(rapidxml::xml_node<>* node, const ColorShape& fill_color, const ColorShape& stroke_color, float stroke_width) : Rect* | ||
-parseElements(std::string file_name) : SVGElement* | ||
-parseShape(rapidxml::xml_node<>* node) : SVGElement* | ||
-root : SVGElement* | ||
-parseText(rapidxml::xml_node<>* node, const ColorShape& fill_color, const ColorShape& stroke_color, float stroke_width) : Text* | ||
+getViewPort() : Vector2Df {query} | ||
-viewport : Vector2Df | ||
+getViewBox() : ViewBox {query} | ||
-viewbox : ViewBox | ||
-parseEllipse(rapidxml::xml_node<>* node, const ColorShape& fill_color, const ColorShape& stroke_color, float stroke_width) : class Ell* | ||
-parsePolygon(rapidxml::xml_node<>* node, const ColorShape& fill_color, const ColorShape& stroke_color, float stroke_width) : class Plygon* | ||
-parsePolyline(rapidxml::xml_node<>* node, const ColorShape& fill_color, const ColorShape& stroke_color, float stroke_width) : class Plyline* | ||
-getFloatAttribute(rapidxml::xml_node<>* node, std::string name) : float | ||
-{static} instance : static Parser* | ||
-gradients : std::map<std::string, Gradient*> | ||
-getAttribute(rapidxml::xml_node<>* node, std::string name) : std::string | ||
-parsePathPoints(rapidxml::xml_node<>* node) : std::vector<PathPoint> | ||
-getGradientStops(rapidxml::xml_node<>* node) : std::vector<Stop> | ||
-parsePoints(rapidxml::xml_node<>* node) : std::vector<Vector2Df> | ||
-getTransformOrder(rapidxml::xml_node<>* node) : std::vector<std::string> | ||
-GetGradients(rapidxml::xml_node<>* node) : void | ||
+printShapesData() : void | ||
} | ||
|
||
|
||
class ViewBox { | ||
+ViewBox() | ||
+ViewBox(float X, float Y, float W, float H) | ||
+getHeight() : float {query} | ||
+getWidth() : float {query} | ||
+getX() : float {query} | ||
+getY() : float {query} | ||
-h : float | ||
-w : float | ||
-x : float | ||
-y : float | ||
} | ||
|
||
|
||
|
||
|
||
|
||
/' Inheritance relationships '/ | ||
|
||
|
||
|
||
|
||
/' Aggregation relationships '/ | ||
|
||
.Parser o-- .Parser | ||
|
||
|
||
.Parser *-- .ViewBox | ||
|
||
|
||
|
||
|
||
|
||
|
||
/' Nested objects '/ | ||
|
||
|
||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.