This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofPath.h
Go to the documentation of this file.
121 void bezierTo(float cx1, float cy1, float cz1, float cx2, float cy2, float cz2, float x, float y, float z);
139 void quadBezierTo(float cx1, float cy1, float cz1, float cx2, float cy2, float cz2, float x, float y, float z);
147 void arc(const glm::vec3 & centre, float radiusX, float radiusY, float angleBegin, float angleEnd);
148 void arc(const glm::vec3 & centre, float radiusX, float radiusY, float angleBegin, float angleEnd, bool clockwise);
149 void arc(const glm::vec2 & centre, float radiusX, float radiusY, float angleBegin, float angleEnd);
150 void arc(const glm::vec2 & centre, float radiusX, float radiusY, float angleBegin, float angleEnd, bool clockwise);
169 void arc(float x, float y, float z, float radiusX, float radiusY, float angleBegin, float angleEnd);
171 void arcNegative(const glm::vec3 & centre, float radiusX, float radiusY, float angleBegin, float angleEnd);
172 void arcNegative(const glm::vec2 & centre, float radiusX, float radiusY, float angleBegin, float angleEnd);
173 void arcNegative(float x, float y, float radiusX, float radiusY, float angleBegin, float angleEnd);
174 void arcNegative(float x, float y, float z, float radiusX, float radiusY, float angleBegin, float angleEnd);
177 void triangle(float x1,float y1,float z1,float x2,float y2,float z2,float x3, float y3,float z3);
ofPath is a way to create a path or multiple paths consisting of points. It allows you to combine mul...
Definition ofPath.h:38
void close()
Close the current subpath and create a new subpath, either an ofPolyline or ofSubPath by calling newS...
Definition ofPath.cpp:509
void triangle(float x1, float y1, float x2, float y2, float x3, float y3)
Definition ofPath.cpp:285
float getStrokeWidth() const
Get the stroke width of the ofPath.
Definition ofPath.cpp:586
void setPolyWindingMode(ofPolyWindingMode mode)
Set the way that the points in the sub paths are connected.
Definition ofPath.cpp:519
OF_DEPRECATED_MSG("Use getCircleResolution instead.", int getArcResolution() const)
ofColor getFillColor() const
Get the ofColor fill of the ofPath.
Definition ofPath.cpp:576
void setStrokeWidth(float width)
Set the stroke width of the line if the ofPath is to be drawn not in wireframe.
Definition ofPath.cpp:535
void draw() const
Draws the path at 0,0. Calling draw() also calls tessellate()
Definition ofPath.cpp:671
void scale(float x, float y)
Change the size of either the ofPolyline or ofSubPath instances that the ofPath contains....
Definition ofPath.cpp:863
void setFillHexColor(int hex)
Set the fill color of the path. This has no affect if the path is drawn as wireframe.
Definition ofPath.cpp:763
void setFillColor(const ofColor &color)
Set the fill color of the path. This has no affect if the path is drawn as wireframe.
Definition ofPath.cpp:757
OF_DEPRECATED_MSG("Use Deg/Rad versions.", void rotate(float degrees, const glm::vec2 &axis))
ofColor getStrokeColor() const
Get the stroke color of the ofPath.
Definition ofPath.cpp:581
void setStrokeColor(const ofColor &color)
Set the stroke color of the path. This has no affect if the path is drawn filled.
Definition ofPath.cpp:768
bool isFilled() const
Get whether the path is using a fill or not.
Definition ofPath.cpp:571
void setColor(const ofColor &color)
Set the color of the path. This affects both the line if the path is drawn as wireframe and the fill ...
Definition ofPath.cpp:746
void setFilled(bool hasFill)
Set whether the path should be drawn as wireframes or filled.
Definition ofPath.cpp:527
void lineTo(const glm::vec3 &p)
Draw a straight line from the current drawing position to the location indicated by p.
Definition ofPath.cpp:91
void setStrokeHexColor(int hex)
Set the stroke color of the path. This has no affect if the path is drawn filled.
Definition ofPath.cpp:774
void bezierTo(const glm::vec3 &cp1, const glm::vec3 &cp2, const glm::vec3 &p)
Create a cubic bezier line from the current drawing point with the 2 control points indicated by glm:...
Definition ofPath.cpp:162
const std::vector< ofPolyline > & getOutline() const
Get an ofPolyline representing the outline of the ofPath.
Definition ofPath.cpp:649
OF_DEPRECATED_MSG("Use setCircleResolution instead.", void setArcResolution(int res))
void moveTo(const glm::vec3 &p)
Move the drawing position to p. This means that a subsequent calls to, for instance,...
Definition ofPath.cpp:116
OF_DEPRECATED_MSG("Use Deg/Rad versions.", void rotate(float degrees, const glm::vec3 &axis))
void newSubPath()
Create a new subpath, either an ofPolyline instance or an ofSubPath instance. All points added after ...
Definition ofPath.cpp:83
void curveTo(const glm::vec3 &p)
Draws a curve to p from the current drawing position.
Definition ofPath.cpp:137
void arc(const glm::vec3 ¢re, float radiusX, float radiusY, float angleBegin, float angleEnd)
Create an arc at centre, which has the radiusX, radiusY, and begins at angleBegin and ends at angleEn...
Definition ofPath.cpp:226
void arcNegative(const glm::vec3 ¢re, float radiusX, float radiusY, float angleBegin, float angleEnd)
Definition ofPath.cpp:256
ofPolyWindingMode getWindingMode() const
Get the poly winding mode currently in use.
Definition ofPath.cpp:566
void quadBezierTo(const glm::vec3 &cp1, const glm::vec3 &cp2, const glm::vec3 &p)
Create a quadratic bezier line in 3D space from the current drawing point with the beginning indicate...
Definition ofPath.cpp:187
void setHexColor(int hex)
Set the color of the path. This affects both the line if the path is drawn as wireframe and the fill ...
Definition ofPath.cpp:752
ofTessellator exists for one purpose: to turn ofPolylines into ofMeshes so that they can be more effi...
Definition ofTessellator.h:25
Definition ofVboMesh.h:6
ofPolyWindingMode
represents the available polygon winding modes.
Definition ofGraphicsConstants.h:97
#define b
Definition ofPath.h:366