Freestyle: removed unused *_EXPORT qualifiers for building Windows DLLs.

These qualifiers were leftovers of the stand alone Freestyle program and not used
(set to an empty string) in Blender for years.
This commit is contained in:
2014-04-17 14:19:10 +09:00
parent 62258d9f30
commit 1674a04488
75 changed files with 178 additions and 276 deletions

View File

@@ -74,7 +74,7 @@ struct LoaderState {
float maxBBox[3];
};
class LIB_SCENE_GRAPH_EXPORT BlenderFileLoader
class BlenderFileLoader
{
public:
/*! Builds a MaxFileLoader */

View File

@@ -39,7 +39,7 @@ extern "C" {
namespace Freestyle {
class LIB_STROKE_EXPORT BlenderStrokeRenderer : public StrokeRenderer
class BlenderStrokeRenderer : public StrokeRenderer
{
public:
BlenderStrokeRenderer(Render *re, int render_count);

View File

@@ -32,7 +32,7 @@
namespace Freestyle {
/*! Class to load textures */
class LIB_RENDERING_EXPORT BlenderTextureManager : public TextureManager
class BlenderTextureManager : public TextureManager
{
public:
BlenderTextureManager();

View File

@@ -42,7 +42,7 @@ namespace Freestyle {
using namespace Geometry;
class LIB_GEOMETRY_EXPORT BezierCurveSegment
class BezierCurveSegment
{
private:
std::vector<Vec2d> _ControlPolygon;
@@ -70,7 +70,7 @@ public:
#endif
};
class LIB_GEOMETRY_EXPORT BezierCurve
class BezierCurve
{
private:
std::vector<Vec2d> _ControlPolygon;

View File

@@ -36,7 +36,7 @@ namespace Freestyle {
* We don't use a hashtable here. The grid is explicitly stored for faster computations.
* However, this might result in significant increase in memory usage (compared to the regular grid)
*/
class LIB_GEOMETRY_EXPORT FastGrid : public Grid
class FastGrid : public Grid
{
public:
FastGrid() : Grid()

View File

@@ -74,7 +74,7 @@ typedef struct Point2Struct
typedef Point2 Vector2;
class LIB_GEOMETRY_EXPORT FitCurveWrapper
class FitCurveWrapper
{
private:
std::vector<Vector2> _vertices;

View File

@@ -40,7 +40,7 @@ namespace Freestyle {
using namespace Geometry;
class LIB_GEOMETRY_EXPORT GeomCleaner
class GeomCleaner
{
public:
inline GeomCleaner() {}

View File

@@ -83,17 +83,14 @@ typedef enum {
COINCIDENT,
} intersection_test;
LIB_GEOMETRY_EXPORT
intersection_test intersect2dSeg2dSeg(const Vec2r& p1, const Vec2r& p2, // first segment
const Vec2r& p3, const Vec2r& p4, // second segment
Vec2r& res); // found intersection point
LIB_GEOMETRY_EXPORT
intersection_test intersect2dLine2dLine(const Vec2r& p1, const Vec2r& p2, // first segment
const Vec2r& p3, const Vec2r& p4, // second segment
Vec2r& res); // found intersection point
LIB_GEOMETRY_EXPORT
intersection_test intersect2dSeg2dSegParametric(const Vec2r& p1, const Vec2r& p2, // first segment
const Vec2r& p3, const Vec2r& p4, // second segment
real& t, // I = P1 + t * P1P2)
@@ -101,26 +98,21 @@ intersection_test intersect2dSeg2dSegParametric(const Vec2r& p1, const Vec2r& p2
real epsilon = M_EPSILON);
/*! check whether a 2D segment intersect a 2D region or not */
LIB_GEOMETRY_EXPORT
bool intersect2dSeg2dArea(const Vec2r& min, const Vec2r& max, const Vec2r& A, const Vec2r& B);
/*! check whether a 2D segment is included in a 2D region or not */
LIB_GEOMETRY_EXPORT
bool include2dSeg2dArea(const Vec2r& min, const Vec2r& max, const Vec2r& A, const Vec2r& B);
/*! Box-triangle overlap test, adapted from Tomas Akenine-Möller code */
LIB_GEOMETRY_EXPORT
bool overlapTriangleBox(Vec3r& boxcenter, Vec3r& boxhalfsize, Vec3r triverts[3]);
/*! Fast, Minimum Storage Ray-Triangle Intersection, adapted from Tomas Möller and Ben Trumbore code. */
LIB_GEOMETRY_EXPORT
bool intersectRayTriangle(const Vec3r& orig, const Vec3r& dir, const Vec3r& v0, const Vec3r& v1, const Vec3r& v2,
real& t, // I = orig + t * dir
real& u, real& v, // I = (1 - u - v) * v0 + u * v1 + v * v2
const real epsilon = M_EPSILON); // the epsilon to use
/*! Intersection between plane and ray adapted from Graphics Gems, Didier Badouel */
LIB_GEOMETRY_EXPORT
intersection_test intersectRayPlane(const Vec3r& orig, const Vec3r& dir, // ray origin and direction
// plane's normal and offset (plane = { P / P.N + d = 0 })
const Vec3r& norm, const real d,
@@ -130,7 +122,6 @@ intersection_test intersectRayPlane(const Vec3r& orig, const Vec3r& dir, // ray
/*! Intersection Ray-Bounding box (axis aligned).
* Adapted from Williams et al, "An Efficient Robust Ray-Box Intersection Algorithm", JGT 10:1 (2005), pp. 49-54.
*/
LIB_GEOMETRY_EXPORT
bool intersectRayBBox(const Vec3r& orig, const Vec3r& dir, // ray origin and direction
const Vec3r& boxMin, const Vec3r& boxMax, // the bbox
// the interval in which at least on of the intersections must happen
@@ -140,16 +131,12 @@ bool intersectRayBBox(const Vec3r& orig, const Vec3r& dir, // ray origin an
real epsilon = M_EPSILON); // the epsilon to use
/*! Checks whether 3D point P lies inside or outside of the triangle ABC */
LIB_GEOMETRY_EXPORT
bool includePointTriangle(const Vec3r& P, const Vec3r& A, const Vec3r& B, const Vec3r& C);
LIB_GEOMETRY_EXPORT
void transformVertex(const Vec3r& vert, const Matrix44r& matrix, Vec3r& res);
LIB_GEOMETRY_EXPORT
void transformVertices(const vector<Vec3r>& vertices, const Matrix44r& trans, vector<Vec3r>& res);
LIB_GEOMETRY_EXPORT
Vec3r rotateVector(const Matrix44r& mat, const Vec3r& v);
//
@@ -171,7 +158,6 @@ Vec3r rotateVector(const Matrix44r& mat, const Vec3r& v);
* viewport
* The viewport: x,y coordinates followed by width and height (OpenGL like viewport)
*/
LIB_GEOMETRY_EXPORT
void fromWorldToImage(const Vec3r& p, Vec3r& q, const real model_view_matrix[4][4], const real projection_matrix[4][4],
const int viewport[4]);
@@ -186,7 +172,6 @@ void fromWorldToImage(const Vec3r& p, Vec3r& q, const real model_view_matrix[4][
* viewport
* The viewport: x,y coordinates followed by width and height (OpenGL like viewport)
*/
LIB_GEOMETRY_EXPORT
void fromWorldToImage(const Vec3r& p, Vec3r& q, const real transform[4][4], const int viewport[4]);
/*! Projects from world coordinates to camera coordinates
@@ -200,7 +185,6 @@ void fromWorldToImage(const Vec3r& p, Vec3r& q, const real transform[4][4], cons
* The model view matrix expressed in line major order (OpenGL
* matrices are column major ordered)
*/
LIB_GEOMETRY_EXPORT
void fromWorldToCamera(const Vec3r& p, Vec3r& q, const real model_view_matrix[4][4]);
/*! Projects from World Coordinates to retina coordinates
@@ -213,7 +197,6 @@ void fromWorldToCamera(const Vec3r& p, Vec3r& q, const real model_view_matrix[4]
* The projection matrix expressed in line major order (OpenGL
* matrices are column major ordered)
*/
LIB_GEOMETRY_EXPORT
void fromCameraToRetina(const Vec3r& p, Vec3r& q, const real projection_matrix[4][4]);
/*! From retina to image.
@@ -225,7 +208,6 @@ void fromCameraToRetina(const Vec3r& p, Vec3r& q, const real projection_matrix[4
* viewport
* The viewport: x,y coordinates followed by width and height (OpenGL like viewport).
*/
LIB_GEOMETRY_EXPORT
void fromRetinaToImage(const Vec3r& p, Vec3r& q, const int viewport[4]);
/*! From image to retina
@@ -236,7 +218,6 @@ void fromRetinaToImage(const Vec3r& p, Vec3r& q, const int viewport[4]);
* viewport
* The viewport: x,y coordinates followed by width and height (OpenGL like viewport).
*/
LIB_GEOMETRY_EXPORT
void fromImageToRetina(const Vec3r& p, Vec3r& q, const int viewport[4]);
/*! computes the coordinates of q in the camera coordinates system,
@@ -251,7 +232,6 @@ void fromImageToRetina(const Vec3r& p, Vec3r& q, const int viewport[4]);
* The projection matrix expressed in line major order (OpenGL
* matrices are column major ordered)
*/
LIB_GEOMETRY_EXPORT
void fromRetinaToCamera(const Vec3r& p, Vec3r& q, real z, const real projection_matrix[4][4]);
/*! Projects from camera coordinates to world coordinates
@@ -265,7 +245,6 @@ void fromRetinaToCamera(const Vec3r& p, Vec3r& q, real z, const real projection_
* The model view matrix expressed in line major order (OpenGL
* matrices are column major ordered)
*/
LIB_GEOMETRY_EXPORT
void fromCameraToWorld(const Vec3r& p, Vec3r& q, const real model_view_matrix[4][4]);
} // end of namespace GeomUtils

View File

@@ -62,7 +62,7 @@ typedef vector<Polygon3r*> OccludersSet;
//
///////////////////////////////////////////////////////////////////////////////
class LIB_GEOMETRY_EXPORT Cell
class Cell
{
public:
Cell(Vec3r& orig) {
@@ -175,7 +175,7 @@ public:
//
///////////////////////////////////////////////////////////////////////////////
class LIB_GEOMETRY_EXPORT Grid
class Grid
{
public:
/*! Builds a Grid. Must be followed by a call to configure() */

View File

@@ -60,7 +60,7 @@ struct GridHasher
};
/*! Class to define a regular grid used for ray casting computations */
class LIB_GEOMETRY_EXPORT HashGrid : public Grid
class HashGrid : public Grid
{
public:
typedef map<Vec3u, Cell*> GridHashTable;

View File

@@ -45,7 +45,7 @@ namespace Freestyle {
using namespace Geometry;
/*! Class to provide Perlin Noise functionalities */
class LIB_GEOMETRY_EXPORT Noise
class Noise
{
public:
/*! Builds a Noise object */

View File

@@ -61,7 +61,6 @@ namespace MatrixUtil {
* @param eigen_values (return) are in decreasing order
* size = n, must be allocated by caller
*/
LIB_GEOMETRY_EXPORT
void semi_definite_symmetric_eigen(const double *mat, int n, double *eigen_vec, double *eigen_val);
} // MatrixUtil namespace

View File

@@ -70,7 +70,7 @@ template <class T> inline void ogf_swap(T& x, T& y)
* D. Cohen-Steiner and J.M. Morvan,
* SOCG 2003
*/
class LIB_GEOMETRY_EXPORT NormalCycle {
class NormalCycle {
public:
NormalCycle();
void begin();

View File

@@ -43,7 +43,7 @@ extern "C" {
namespace Freestyle {
class LIB_IMAGE_EXPORT GaussianFilter
class GaussianFilter
{
protected:
/* The mask is a symetrical 2d array (with respect to the middle point).

View File

@@ -40,7 +40,7 @@ namespace Freestyle {
class GrayImage;
class LIB_IMAGE_EXPORT ImagePyramid
class ImagePyramid
{
protected:
std::vector<GrayImage*> _levels;
@@ -88,7 +88,7 @@ public:
#endif
};
class LIB_IMAGE_EXPORT GaussianPyramid : public ImagePyramid
class GaussianPyramid : public ImagePyramid
{
protected:
float _sigma;

View File

@@ -38,7 +38,7 @@
namespace Freestyle {
class LIB_SCENE_GRAPH_EXPORT IndexedFaceSet : public Rep
class IndexedFaceSet : public Rep
{
public:
/*! Triangles description style:*/

View File

@@ -40,7 +40,7 @@ using namespace std;
namespace Freestyle {
/*! Base class for all lines objects */
class LIB_SCENE_GRAPH_EXPORT LineRep : public Rep
class LineRep : public Rep
{
public:
/*! Line description style */

View File

@@ -43,7 +43,7 @@ namespace Freestyle {
using namespace Geometry;
class LIB_SCENE_GRAPH_EXPORT Node : public BaseObject
class Node : public BaseObject
{
public:
inline Node() : BaseObject() {}

View File

@@ -42,7 +42,7 @@ class NodeOrthographicCamera;
class NodePerspectiveCamera;
class LIB_SCENE_GRAPH_EXPORT NodeCamera : public Node
class NodeCamera : public Node
{
public:
typedef enum {
@@ -90,7 +90,7 @@ protected:
};
class LIB_SCENE_GRAPH_EXPORT NodeOrthographicCamera : public NodeCamera
class NodeOrthographicCamera : public NodeCamera
{
public:
NodeOrthographicCamera();
@@ -157,7 +157,7 @@ private:
};
class LIB_SCENE_GRAPH_EXPORT NodePerspectiveCamera : public NodeCamera
class NodePerspectiveCamera : public NodeCamera
{
public:
NodePerspectiveCamera();

View File

@@ -35,7 +35,7 @@
namespace Freestyle {
class LIB_SCENE_GRAPH_EXPORT NodeDrawingStyle : public NodeGroup
class NodeDrawingStyle : public NodeGroup
{
public:
inline NodeDrawingStyle() : NodeGroup() {}

View File

@@ -39,7 +39,7 @@ using namespace std;
namespace Freestyle {
class LIB_SCENE_GRAPH_EXPORT NodeGroup : public Node
class NodeGroup : public Node
{
public:
inline NodeGroup(): Node() {}

View File

@@ -38,7 +38,7 @@ namespace Freestyle {
using namespace Geometry;
class LIB_SCENE_GRAPH_EXPORT NodeLight : public Node
class NodeLight : public Node
{
public:
NodeLight();

View File

@@ -45,7 +45,7 @@ namespace Freestyle {
using namespace Geometry;
class LIB_SCENE_GRAPH_EXPORT NodeShape : public Node
class NodeShape : public Node
{
public:
inline NodeShape() : Node() {}

View File

@@ -39,7 +39,7 @@ namespace Freestyle {
using namespace Geometry;
class LIB_SCENE_GRAPH_EXPORT NodeTransform : public NodeGroup
class NodeTransform : public NodeGroup
{
public:
inline NodeTransform() : NodeGroup()

View File

@@ -34,7 +34,7 @@
namespace Freestyle {
class LIB_SCENE_GRAPH_EXPORT OrientedLineRep : public LineRep
class OrientedLineRep : public LineRep
{
public:
OrientedLineRep() : LineRep() {}

View File

@@ -42,7 +42,7 @@ namespace Freestyle {
using namespace Geometry;
class LIB_SCENE_GRAPH_EXPORT Rep : public BaseObject
class Rep : public BaseObject
{
public:
inline Rep() : BaseObject()

View File

@@ -66,7 +66,7 @@ class IndexedFaceSet;
class DrawingStyle;
class FrsMaterial;
class LIB_SCENE_GRAPH_EXPORT SceneVisitor
class SceneVisitor
{
public:
SceneVisitor() {}

View File

@@ -34,7 +34,7 @@
namespace Freestyle {
/*! Base class for all lines objects */
class LIB_SCENE_GRAPH_EXPORT TriangleRep : public Rep
class TriangleRep : public Rep
{
public:
/*! Line description style */

View File

@@ -32,7 +32,7 @@
namespace Freestyle {
class LIB_SCENE_GRAPH_EXPORT VertexRep : public Rep
class VertexRep : public Rep
{
public:
inline VertexRep() : Rep()

View File

@@ -48,7 +48,7 @@ namespace Functions0D {
* This density is evaluated using a pixels square window around the evaluation point and integrating
* these values using a gaussian.
*/
class LIB_STROKE_EXPORT DensityF0D : public UnaryFunction0D<double>
class DensityF0D : public UnaryFunction0D<double>
{
public:
/*! Builds the functor from the gaussian sigma value.
@@ -78,7 +78,7 @@ private:
/*! Returns the average depth around a point.
* The result is obtained by querying the depth buffer on a window around that point.
*/
class LIB_STROKE_EXPORT LocalAverageDepthF0D : public UnaryFunction0D<double>
class LocalAverageDepthF0D : public UnaryFunction0D<double>
{
private:
GaussianFilter _filter;
@@ -102,7 +102,7 @@ public:
// ReadMapPixel
/*! Reads a pixel in a map. */
class LIB_STROKE_EXPORT ReadMapPixelF0D : public UnaryFunction0D<float>
class ReadMapPixelF0D : public UnaryFunction0D<float>
{
private:
const char * _mapName;
@@ -134,7 +134,7 @@ public:
// ReadSteerableViewMapPixel
/*! Reads a pixel in one of the level of one of the steerable viewmaps. */
class LIB_STROKE_EXPORT ReadSteerableViewMapPixelF0D : public UnaryFunction0D<float>
class ReadSteerableViewMapPixelF0D : public UnaryFunction0D<float>
{
private:
unsigned _orientation;
@@ -165,7 +165,7 @@ public:
// ReadCompleteViewMapPixel
/*! Reads a pixel in one of the level of the complete viewmap. */
class LIB_STROKE_EXPORT ReadCompleteViewMapPixelF0D : public UnaryFunction0D<float>
class ReadCompleteViewMapPixelF0D : public UnaryFunction0D<float>
{
private:
int _level;
@@ -192,7 +192,7 @@ public:
// GetViewMapGradientNormF0D
/*! Returns the norm of the gradient of the global viewmap density image. */
class LIB_STROKE_EXPORT GetViewMapGradientNormF0D: public UnaryFunction0D< float>
class GetViewMapGradientNormF0D: public UnaryFunction0D< float>
{
private:
int _level;

View File

@@ -130,7 +130,7 @@ private:
* The density is evaluated for a set of points along the Interface1D (using the ReadCompleteViewMapPixelF0D functor)
* and then integrated into a single value using a user-defined integration method.
*/
class LIB_STROKE_EXPORT GetCompleteViewMapDensityF1D : public UnaryFunction1D<double>
class GetCompleteViewMapDensityF1D : public UnaryFunction1D<double>
{
public:
/*! Builds the functor.
@@ -172,7 +172,7 @@ private:
* The density is evaluated for a set of points along the Interface1D (using the ReadSteerableViewMapPixelF0D functor)
* and then integrated into a single value using a user-defined integration method.
*/
class LIB_STROKE_EXPORT GetDirectionalViewMapDensityF1D : public UnaryFunction1D<double>
class GetDirectionalViewMapDensityF1D : public UnaryFunction1D<double>
{
public:
/*! Builds the functor.
@@ -212,7 +212,7 @@ private:
/*! Returns the density of the viewmap for a given Interface1D. The density of each FEdge is evaluated
* in the proper steerable ViewMap depending on its oorientation.
*/
class LIB_STROKE_EXPORT GetSteerableViewMapDensityF1D : public UnaryFunction1D<double>
class GetSteerableViewMapDensityF1D : public UnaryFunction1D<double>
{
private:
int _level;
@@ -253,7 +253,7 @@ public:
/*! Returns the density of the viewmap for a given Interface1D. The density of each FEdge is evaluated in
* the proper steerable ViewMap depending on its oorientation.
*/
class LIB_STROKE_EXPORT GetViewMapGradientNormF1D : public UnaryFunction1D<double>
class GetViewMapGradientNormF1D : public UnaryFunction1D<double>
{
private:
int _level;

View File

@@ -37,7 +37,7 @@ namespace Freestyle {
* i.e. The stroke will be the thickest in a main direction, the thinest in the direction perpendicular to this one,
* and an interpolation inbetween.
*/
class LIB_STROKE_EXPORT CalligraphicShader : public StrokeShader
class CalligraphicShader : public StrokeShader
{
public:
/*! Builds the shader.
@@ -70,7 +70,7 @@ protected:
* Moves the vertices to make the stroke more noisy.
* @see \htmlonly <a href=noise/noise.html>noise/noise.html</a> \endhtmlonly
*/
class LIB_STROKE_EXPORT SpatialNoiseShader : public StrokeShader
class SpatialNoiseShader : public StrokeShader
{
public:
/*! Builds the shader.
@@ -108,7 +108,7 @@ protected:
* to prevent the diffusion accross corners.
* @see \htmlonly <a href=/smoothing/smoothing.html>smoothing/smoothing.html</a> \endhtmlonly
*/
class LIB_STROKE_EXPORT SmoothingShader : public StrokeShader
class SmoothingShader : public StrokeShader
{
public:
/*! Builds the shader.
@@ -149,7 +149,7 @@ protected:
real _carricatureFactor;
};
class LIB_STROKE_EXPORT Smoother
class Smoother
{
public:
Smoother(Stroke &ioStroke);
@@ -184,7 +184,7 @@ protected:
bool _safeTest;
};
class LIB_STROKE_EXPORT Omitter : public Smoother
class Omitter : public Smoother
{
public:
Omitter(Stroke &ioStroke);
@@ -203,7 +203,7 @@ protected:
};
/*! Omission shader */
class LIB_STROKE_EXPORT OmissionShader : public StrokeShader
class OmissionShader : public StrokeShader
{
public:
OmissionShader(real sizeWindow, real thrVari, real thrFlat, real lFlat);

View File

@@ -52,7 +52,7 @@ namespace StrokeShaders {
/*! [ Thickness Shader ].
* Assigns an absolute constant thickness to every vertices of the Stroke.
*/
class LIB_STROKE_EXPORT ConstantThicknessShader : public StrokeShader
class ConstantThicknessShader : public StrokeShader
{
public:
/*! Builds the shader.
@@ -85,7 +85,7 @@ private:
* is its thickness from the point to the strip border in the direction pointing outside the object the
* Stroke delimitates.
*/
class LIB_STROKE_EXPORT ConstantExternThicknessShader : public StrokeShader
class ConstantExternThicknessShader : public StrokeShader
{
public:
ConstantExternThicknessShader(float thickness) : StrokeShader()
@@ -112,7 +112,7 @@ private:
* and the last vertex.
* The thickness is linearly interpolated from A to B.
*/
class LIB_STROKE_EXPORT IncreasingThicknessShader : public StrokeShader
class IncreasingThicknessShader : public StrokeShader
{
public:
/*! Builds the shader.
@@ -147,7 +147,7 @@ private:
* Same as previous but here we allow the user to control the ratio thickness/length so that we don't get
* fat short lines
*/
class LIB_STROKE_EXPORT ConstrainedIncreasingThicknessShader : public StrokeShader
class ConstrainedIncreasingThicknessShader : public StrokeShader
{
private:
float _ThicknessMin;
@@ -185,7 +185,7 @@ public:
/* [ Thickness Shader ].
* Modifys the thickness in a relative way depending on its length.
*/
class LIB_STROKE_EXPORT LengthDependingThicknessShader : public StrokeShader
class LengthDependingThicknessShader : public StrokeShader
{
private:
float _minThickness;
@@ -218,7 +218,7 @@ public:
* The new thicknesses are the result of the multiplication
* of the pattern and the original thickness
*/
class LIB_STROKE_EXPORT ThicknessVariationPatternShader : public StrokeShader
class ThicknessVariationPatternShader : public StrokeShader
{
public:
/*! Builds the shader.
@@ -263,7 +263,7 @@ private:
* Adds some noise to the stroke thickness.
* \see \htmlonly <a href=noise/noise.html>noise/noise.html</a>\endhtmlonly
*/
class LIB_STROKE_EXPORT ThicknessNoiseShader : public StrokeShader
class ThicknessNoiseShader : public StrokeShader
{
private:
float _amplitude;
@@ -297,7 +297,7 @@ public:
/*! [ Color Shader ].
* Assigns a constant color to every vertices of the Stroke.
*/
class LIB_STROKE_EXPORT ConstantColorShader : public StrokeShader
class ConstantColorShader : public StrokeShader
{
public:
/*! Builds the shader from a user-specified color.
@@ -335,7 +335,7 @@ private:
* The user specifies 2 colors A and B. The stroke color will change linearly from A to B between the
* first and the last vertex.
*/
class LIB_STROKE_EXPORT IncreasingColorShader : public StrokeShader
class IncreasingColorShader : public StrokeShader
{
private:
float _colorMin[4];
@@ -388,7 +388,7 @@ public:
* Applys a pattern to vary original color.
* The new color is the result of the multiplication of the pattern and the original color
*/
class LIB_STROKE_EXPORT ColorVariationPatternShader : public StrokeShader
class ColorVariationPatternShader : public StrokeShader
{
public:
/*! Builds the shader from the pattern texture file name.
@@ -425,7 +425,7 @@ private:
/* [ Color Shader ].
* Assigns a color to the stroke depending on the material of the shape to which ot belongs to. (Disney shader)
*/
class LIB_STROKE_EXPORT MaterialColorShader : public StrokeShader
class MaterialColorShader : public StrokeShader
{
private:
float _coefficient;
@@ -444,7 +444,7 @@ public:
virtual int shade(Stroke& stroke) const;
};
class LIB_STROKE_EXPORT CalligraphicColorShader : public StrokeShader
class CalligraphicColorShader : public StrokeShader
{
private:
/* UNUSED */
@@ -469,7 +469,7 @@ public:
/*! [ Color Shader ].
* Shader to add noise to the stroke colors.
*/
class LIB_STROKE_EXPORT ColorNoiseShader : public StrokeShader
class ColorNoiseShader : public StrokeShader
{
private:
float _amplitude;
@@ -516,7 +516,7 @@ public:
* Any other value will lead to the following preset:
* default) -> /brushes/smoothAlpha.bmp, OPAQUE_MEDIUM.
*/
class LIB_STROKE_EXPORT TextureAssignerShader : public StrokeShader // FIXME
class TextureAssignerShader : public StrokeShader // FIXME
{
private:
int _textureId;
@@ -544,7 +544,7 @@ public:
* Assigns a texture and a blending mode to the stroke
* in order to simulate its marks system.
*/
class LIB_STROKE_EXPORT StrokeTextureShader : public StrokeShader
class StrokeTextureShader : public StrokeShader
{
private:
string _texturePath;
@@ -601,7 +601,7 @@ public:
/*! [ Geometry Shader ].
* Stretches the stroke at its two extremities and following the respective directions: v(1)v(0) and v(n-1)v(n).
*/
class LIB_STROKE_EXPORT BackboneStretcherShader : public StrokeShader
class BackboneStretcherShader : public StrokeShader
{
private:
float _amount;
@@ -629,7 +629,7 @@ public:
* Resamples the stroke.
* @see Stroke::Resample(float).
*/
class LIB_STROKE_EXPORT SamplingShader: public StrokeShader
class SamplingShader: public StrokeShader
{
private:
float _sampling;
@@ -654,7 +654,7 @@ public:
};
class LIB_STROKE_EXPORT ExternalContourStretcherShader : public StrokeShader
class ExternalContourStretcherShader : public StrokeShader
{
private:
float _amount;
@@ -674,7 +674,7 @@ public:
};
// B-Spline stroke shader
class LIB_STROKE_EXPORT BSplineShader: public StrokeShader
class BSplineShader: public StrokeShader
{
public:
BSplineShader() : StrokeShader() {}
@@ -694,7 +694,7 @@ public:
* original backbone geometry.
* @see \htmlonly <a href=bezier/bezier.html>bezier/bezier.html</a> \endhtmlonly
*/
class LIB_STROKE_EXPORT BezierCurveShader : public StrokeShader
class BezierCurveShader : public StrokeShader
{
private:
float _error;
@@ -723,7 +723,7 @@ public:
* The displacement value is proportional to the 2d curvature at the considered point (the higher the curvature,
* the smaller the displacement) and to a value specified by the user.
*/
class LIB_STROKE_EXPORT InflateShader : public StrokeShader
class InflateShader : public StrokeShader
{
private:
float _amount;
@@ -756,7 +756,7 @@ public:
* The basic idea is to start from the minimal stroke approximation consisting in a line joining the first vertex
* to the last one and to subdivide using the original stroke vertices until a certain error is reached.
*/
class LIB_STROKE_EXPORT PolygonalizationShader : public StrokeShader
class PolygonalizationShader : public StrokeShader
{
private:
float _error;
@@ -789,7 +789,7 @@ public:
* Indeed, the precision of the approximation will depend on the size of the stroke's pieces.
* The bigger the pieces, the rougher the approximation.
*/
class LIB_STROKE_EXPORT GuidingLinesShader : public StrokeShader
class GuidingLinesShader : public StrokeShader
{
private:
float _offset;
@@ -817,7 +817,7 @@ public:
/*! [ Geometry Shader ].
* Removes the stroke's extremities.
*/
class LIB_STROKE_EXPORT TipRemoverShader : public StrokeShader
class TipRemoverShader : public StrokeShader
{
public:
/*! Builds the shader.
@@ -844,7 +844,7 @@ protected:
/*! [ output Shader ].
* streams the Stroke
*/
class LIB_STROKE_EXPORT streamShader : public StrokeShader
class streamShader : public StrokeShader
{
public:
/*! Destructor. */
@@ -863,7 +863,7 @@ public:
/*! [ output Shader ].
* streams the Stroke in a file
*/
class LIB_STROKE_EXPORT fstreamShader : public StrokeShader
class fstreamShader : public StrokeShader
{
protected:
mutable ofstream _stream;

View File

@@ -56,10 +56,8 @@ using namespace std;
namespace Freestyle {
LIB_STROKE_EXPORT
Canvas *Canvas::_pInstance = 0;
LIB_STROKE_EXPORT
const char *Canvas::_MapsPath = 0;
Canvas::Canvas()

View File

@@ -71,7 +71,7 @@ class StyleModule;
/*! Class to define the canvas on which strokes are drawn.
* It's used to store state information about the drawing.
*/
class LIB_STROKE_EXPORT Canvas
class Canvas
{
public:
/*! Returns a pointer on the Canvas instance */

View File

@@ -46,7 +46,7 @@ namespace Freestyle {
// Adjacency iterator used in the chaining process
//
///////////////////////////////////////////////////////////
class LIB_STROKE_EXPORT AdjacencyIterator : public Iterator
class AdjacencyIterator : public Iterator
{
protected:
ViewVertexInternal::orientedViewEdgeIterator _internalIterator;
@@ -150,7 +150,7 @@ protected:
* If you specify restriction rules (such as "Chain only ViewEdges of the selection"), they will be included
* in the adjacency iterator. (i.e, the adjacent iterator will only stop on "valid" edges).
*/
class LIB_STROKE_EXPORT ChainingIterator : public ViewEdgeInternal::ViewEdgeIterator
class ChainingIterator : public ViewEdgeInternal::ViewEdgeIterator
{
protected:
bool _restrictToSelection;
@@ -258,7 +258,7 @@ public:
* In the case of an iteration over a set of ViewEdge that are both Silhouette and Crease, there will be a precedence
* of the silhouette over the crease criterion.
*/
class LIB_STROKE_EXPORT ChainSilhouetteIterator : public ChainingIterator
class ChainSilhouetteIterator : public ChainingIterator
{
public:
/*! Builds a ChainSilhouetteIterator from the first ViewEdge used for iteration and its orientation.
@@ -309,7 +309,7 @@ public:
* selection. The first ViewEdge respecting both the unary predicate and the binary predicate is kept as the next one.
* If none of the potential next ViewEdge respects these 2 predicates, 0 is returned.
*/
class LIB_STROKE_EXPORT ChainPredicateIterator : public ChainingIterator
class ChainPredicateIterator : public ChainingIterator
{
protected:
BinaryPredicate1D *_binary_predicate; // the caller is responsible for the deletion of this object

View File

@@ -45,27 +45,22 @@ namespace ContextFunctions {
// GetTimeStamp
/*! Returns the system time stamp */
LIB_STROKE_EXPORT
unsigned GetTimeStampCF();
// GetCanvasWidth
/*! Returns the canvas width */
LIB_STROKE_EXPORT
unsigned GetCanvasWidthCF();
// GetCanvasHeight
/*! Returns the canvas height */
LIB_STROKE_EXPORT
unsigned GetCanvasHeightCF();
// GetBorder
/*! Returns the border */
LIB_STROKE_EXPORT
BBox<Vec2i> GetBorderCF();
// Load map
/*! Loads an image map for further reading */
LIB_STROKE_EXPORT
void LoadMapCF(const char *iFileName, const char *iMapName, unsigned iNbLevels = 4, float iSigma = 1.0f);
// ReadMapPixel
@@ -80,7 +75,6 @@ void LoadMapCF(const char *iFileName, const char *iMapName, unsigned iNbLevels =
* \param y
* The y-coordinate of the pixel we wish to read. The origin is in the lower-left corner.
*/
LIB_STROKE_EXPORT
float ReadMapPixelCF(const char *iMapName, int level, unsigned x, unsigned y);
// ReadCompleteViewMapPixel
@@ -93,7 +87,6 @@ float ReadMapPixelCF(const char *iMapName, int level, unsigned x, unsigned y);
* \param y
* The y-coordinate of the pixel we wish to read. The origin is in the lower-left corner.
*/
LIB_STROKE_EXPORT
float ReadCompleteViewMapPixelCF(int level, unsigned x, unsigned y);
// ReadOrientedViewMapPixel
@@ -108,11 +101,9 @@ float ReadCompleteViewMapPixelCF(int level, unsigned x, unsigned y);
* \param y
* The y-coordinate of the pixel we wish to read. The origin is in the lower-left corner.
*/
LIB_STROKE_EXPORT
float ReadDirectionalViewMapPixelCF(int iOrientation, int level, unsigned x, unsigned y);
// DEBUG
LIB_STROKE_EXPORT
FEdge *GetSelectedFEdgeCF();
} // end of namespace ContextFunctions

View File

@@ -66,7 +66,7 @@ using namespace Geometry;
* Thus, a CurvePoint is built by lineraly interpolating two SVertex.
* CurvePoint can be used as virtual points while querying 0D information along a curve at a given resolution.
*/
class LIB_STROKE_EXPORT CurvePoint : public Interface0D
class CurvePoint : public Interface0D
{
public: // Implementation of Interface0D
/*! Returns the string "CurvePoint"*/
@@ -365,7 +365,7 @@ class CurvePointIterator;
* SVertex is the type of the initial curve vertices.
* A Chain is a specialization of a Curve.
*/
class LIB_STROKE_EXPORT Curve : public Interface1D
class Curve : public Interface1D
{
public:
typedef CurvePoint Vertex;

View File

@@ -38,10 +38,10 @@
namespace Freestyle {
LIB_STROKE_EXPORT Operators::I1DContainer Operators::_current_view_edges_set;
LIB_STROKE_EXPORT Operators::I1DContainer Operators::_current_chains_set;
LIB_STROKE_EXPORT Operators::I1DContainer *Operators::_current_set = NULL;
LIB_STROKE_EXPORT Operators::StrokesContainer Operators::_current_strokes_set;
Operators::I1DContainer Operators::_current_view_edges_set;
Operators::I1DContainer Operators::_current_chains_set;
Operators::I1DContainer *Operators::_current_set = NULL;
Operators::StrokesContainer Operators::_current_strokes_set;
int Operators::select(UnaryPredicate1D& pred)
{

View File

@@ -53,7 +53,7 @@ namespace Freestyle {
* There are 4 classes of operators: Selection, Chaining, Splitting and Creating. All these operators are
* user controlled in the scripting language through Functors, Predicates and Shaders that are taken as arguments.
*/
class LIB_STROKE_EXPORT Operators {
class Operators {
public:
typedef vector<Interface1D*> I1DContainer;

View File

@@ -44,7 +44,7 @@ namespace Freestyle {
/* */
/**********************************/
class LIB_STROKE_EXPORT PSStrokeRenderer : public StrokeRenderer
class PSStrokeRenderer : public StrokeRenderer
{
public:
PSStrokeRenderer(const char *iFileName = NULL);

View File

@@ -53,7 +53,7 @@ namespace Freestyle {
/*! Class to define an attribute associated to a Stroke Vertex.
* This attribute stores the color, alpha and thickness values for a Stroke Vertex.
*/
class LIB_STROKE_EXPORT StrokeAttribute
class StrokeAttribute
{
public:
/*! default constructor */
@@ -314,7 +314,7 @@ private:
////////////////////////////////////////////////////////
/*! Class to define a stroke vertex. */
class LIB_STROKE_EXPORT StrokeVertex : public CurvePoint
class StrokeVertex : public CurvePoint
{
public: // Implementation of Interface0D
/*! Returns the string "StrokeVertex" */
@@ -489,7 +489,7 @@ class StrokeVertexIterator;
* This set of vertices defines the stroke's backbone geometry.
* Each of these stroke vertices defines the stroke's shape and appearance at this vertex position.
*/
class LIB_STROKE_EXPORT Stroke : public Interface1D
class Stroke : public Interface1D
{
public: // Implementation of Interface1D
/*! Returns the string "Stroke" */

View File

@@ -36,13 +36,10 @@
namespace Freestyle {
LIB_STROKE_EXPORT
ostream& operator<<(ostream& out, const StrokeAttribute& iStrokeAttribute);
LIB_STROKE_EXPORT
ostream& operator<<(ostream& out, const StrokeVertex& iStrokeVertex);
LIB_STROKE_EXPORT
ostream& operator<<(ostream& out, const Stroke& iStroke);
} /* namespace Freestyle */

View File

@@ -41,7 +41,6 @@ namespace Freestyle {
/* */
/**********************************/
LIB_STROKE_EXPORT
TextureManager *StrokeRenderer::_textureManager = 0;
StrokeRenderer::StrokeRenderer() {}
@@ -64,13 +63,10 @@ bool StrokeRenderer::loadTextures()
/**********************************/
LIB_STROKE_EXPORT
TextureManager *TextureManager::_pInstance = 0;
LIB_STROKE_EXPORT
string TextureManager::_patterns_path;
LIB_STROKE_EXPORT
string TextureManager::_brushes_path;
TextureManager::TextureManager()

View File

@@ -55,7 +55,7 @@ namespace Freestyle {
/*! Class to load textures */
class LIB_STROKE_EXPORT TextureManager
class TextureManager
{
public:
TextureManager ();
@@ -79,7 +79,7 @@ public:
return _defaultTextureId;
}
struct LIB_STROKE_EXPORT Options
struct Options
{
static void setPatternsPath(const string& path);
static string getPatternsPath();
@@ -128,7 +128,7 @@ protected:
/**********************************/
/*! Class to render a stroke. Creates a triangle strip and stores it strip is lazily created at the first rendering */
class LIB_STROKE_EXPORT StrokeRenderer
class StrokeRenderer
{
public:
StrokeRenderer();

View File

@@ -52,7 +52,7 @@ namespace Freestyle {
/* */
/**********************************/
class LIB_STROKE_EXPORT TextStrokeRenderer : public StrokeRenderer
class TextStrokeRenderer : public StrokeRenderer
{
public:
TextStrokeRenderer(const char *iFileName = NULL);

View File

@@ -37,7 +37,7 @@
namespace Freestyle {
class LIB_SYSTEM_EXPORT BaseObject
class BaseObject
{
public:
inline BaseObject()

View File

@@ -36,7 +36,7 @@
namespace Freestyle {
class LIB_SYSTEM_EXPORT Exception
class Exception
{
public:
typedef enum {

View File

@@ -46,44 +46,6 @@ namespace Config {
static const string PATH_SEP(":");
#endif // WIN32
// DLL import/export macros for Win32
#ifndef LIB_SYSTEM_EXPORT
# define LIB_SYSTEM_EXPORT
#endif // LIB_SYSTEM_EXPORT
#ifndef LIB_IMAGE_EXPORT
# define LIB_IMAGE_EXPORT
#endif // LIB_IMAGE_EXPORT
#ifndef LIB_GEOMETRY_EXPORT
# define LIB_GEOMETRY_EXPORT
#endif // LIB_GEOMETRY_EXPORT
#ifndef LIB_SCENE_GRAPH_EXPORT
# define LIB_SCENE_GRAPH_EXPORT
#endif // LIB_SCENE_GRAPH_EXPORT
#ifndef LIB_WINGED_EDGE_EXPORT
# define LIB_WINGED_EDGE_EXPORT
#endif // LIB_WINGED_EDGE_EXPORT
#ifndef LIB_VIEW_MAP_EXPORT
# define LIB_VIEW_MAP_EXPORT
#endif // LIB_VIEW_MAP_EXPORT
#ifndef LIB_STROKE_EXPORT
# define LIB_STROKE_EXPORT
#endif // LIB_STROKE_EXPORT
#ifndef LIB_RENDERING_EXPORT
# define LIB_RENDERING_EXPORT
#endif // LIB_RENDERING_EXPORT
#ifndef LIB_WRAPPER_EXPORT
# define LIB_WRAPPER_EXPORT
#endif // LIB_WRAPPER_EXPORT
} // end of namespace Config
} /* namespace Freestyle */

View File

@@ -38,7 +38,7 @@ using namespace std;
namespace Freestyle {
class LIB_SYSTEM_EXPORT Interpreter
class Interpreter
{
public:
Interpreter()

View File

@@ -37,7 +37,7 @@
namespace Freestyle {
class LIB_SYSTEM_EXPORT PseudoNoise
class PseudoNoise
{
public:
PseudoNoise();

View File

@@ -55,7 +55,7 @@ extern "C" {
namespace Freestyle {
class LIB_SYSTEM_EXPORT PythonInterpreter : public Interpreter
class PythonInterpreter : public Interpreter
{
public:
PythonInterpreter()

View File

@@ -40,7 +40,7 @@
namespace Freestyle {
class LIB_SYSTEM_EXPORT RandGen
class RandGen
{
public:
static real drand48();

View File

@@ -51,7 +51,6 @@ namespace Freestyle {
namespace StringUtils {
LIB_SYSTEM_EXPORT
void getPathName(const string& path, const string& base, vector<string>& pathnames);
// STL related

View File

@@ -29,7 +29,6 @@
namespace Freestyle {
LIB_SYSTEM_EXPORT
TimeStamp TimeStamp::_instance;
} /* namespace Freestyle */

View File

@@ -36,7 +36,7 @@
namespace Freestyle {
class LIB_SYSTEM_EXPORT TimeStamp
class TimeStamp
{
public:
static inline TimeStamp *instance()

View File

@@ -50,7 +50,7 @@ namespace Freestyle {
using namespace Geometry;
/*! This class takes as input a WXEdge structure and fills it */
class LIB_VIEW_MAP_EXPORT FEdgeXDetector
class FEdgeXDetector
{
public:
FEdgeXDetector()

View File

@@ -74,7 +74,7 @@ using namespace Geometry;
* - UnaryFunction0DVec3f
*/
template <class T>
class /*LIB_VIEW_MAP_EXPORT*/ UnaryFunction0D
class UnaryFunction0D
{
public:
T result;
@@ -144,7 +144,7 @@ namespace Functions0D {
// GetXF0D
/*! Returns the X 3D coordinate of an Interface0D. */
class LIB_VIEW_MAP_EXPORT GetXF0D : public UnaryFunction0D<double>
class GetXF0D : public UnaryFunction0D<double>
{
public:
/*! Returns the string "GetXF0D" */
@@ -163,7 +163,7 @@ public:
// GetYF0D
/*! Returns the Y 3D coordinate of an Interface0D. */
class LIB_VIEW_MAP_EXPORT GetYF0D : public UnaryFunction0D<double>
class GetYF0D : public UnaryFunction0D<double>
{
public:
/*! Returns the string "GetYF0D" */
@@ -182,7 +182,7 @@ public:
// GetZF0D
/*! Returns the Z 3D coordinate of an Interface0D. */
class LIB_VIEW_MAP_EXPORT GetZF0D : public UnaryFunction0D<double>
class GetZF0D : public UnaryFunction0D<double>
{
public:
/*! Returns the string "GetZF0D" */
@@ -201,7 +201,7 @@ public:
// GetProjectedXF0D
/*! Returns the X 3D projected coordinate of an Interface0D. */
class LIB_VIEW_MAP_EXPORT GetProjectedXF0D : public UnaryFunction0D<double>
class GetProjectedXF0D : public UnaryFunction0D<double>
{
public:
/*! Returns the string "GetProjectedXF0D" */
@@ -220,7 +220,7 @@ public:
// GetProjectedYF0D
/*! Returns the Y projected 3D coordinate of an Interface0D. */
class LIB_VIEW_MAP_EXPORT GetProjectedYF0D : public UnaryFunction0D<double>
class GetProjectedYF0D : public UnaryFunction0D<double>
{
public:
/*! Returns the string "GetProjectedYF0D" */
@@ -239,7 +239,7 @@ public:
// GetProjectedZF0D
/*! Returns the Z projected 3D coordinate of an Interface0D. */
class LIB_VIEW_MAP_EXPORT GetProjectedZF0D : public UnaryFunction0D<double>
class GetProjectedZF0D : public UnaryFunction0D<double>
{
public:
/*! Returns the string "GetProjectedZF0D" */
@@ -258,7 +258,7 @@ public:
// GetCurvilinearAbscissaF0D
/*! Returns the curvilinear abscissa of an Interface0D in the context of its 1D element. */
class LIB_VIEW_MAP_EXPORT GetCurvilinearAbscissaF0D : public UnaryFunction0D<float>
class GetCurvilinearAbscissaF0D : public UnaryFunction0D<float>
{
public:
/*! Returns the string "GetCurvilinearAbscissaF0D" */
@@ -277,7 +277,7 @@ public:
// GetParameterF0D
/*! Returns the parameter of an Interface0D in the context of its 1D element. */
class LIB_VIEW_MAP_EXPORT GetParameterF0D : public UnaryFunction0D<float>
class GetParameterF0D : public UnaryFunction0D<float>
{
public:
/*! Returns the string "GetCurvilinearAbscissaF0D" */
@@ -298,7 +298,7 @@ public:
/*! Returns a Vec2r giving the 2D oriented tangent to the 1D element to which the Interface0DIterator& belongs to and
* evaluated at the Interface0D pointed by this Interface0DIterator&.
*/
class LIB_VIEW_MAP_EXPORT VertexOrientation2DF0D : public UnaryFunction0D<Vec2f>
class VertexOrientation2DF0D : public UnaryFunction0D<Vec2f>
{
public:
/*! Returns the string "VertexOrientation2DF0D" */
@@ -315,7 +315,7 @@ public:
/*! Returns a Vec3r giving the 3D oriented tangent to the 1D element to which the Interface0DIterator& belongs to and
* evaluated at the Interface0D pointed by this Interface0DIterator&.
*/
class LIB_VIEW_MAP_EXPORT VertexOrientation3DF0D : public UnaryFunction0D<Vec3f>
class VertexOrientation3DF0D : public UnaryFunction0D<Vec3f>
{
public:
/*! Returns the string "VertexOrientation3DF0D" */
@@ -332,7 +332,7 @@ public:
/*! Returns a real giving the 2D curvature (as an angle) of the 1D element to which the Interface0DIterator&
* belongs to and evaluated at the Interface0D pointed by this Interface0DIterator&.
*/
class LIB_VIEW_MAP_EXPORT Curvature2DAngleF0D : public UnaryFunction0D<double>
class Curvature2DAngleF0D : public UnaryFunction0D<double>
{
public:
/*! Returns the string "Curvature2DAngleF0D" */
@@ -350,7 +350,7 @@ public:
* This distance is evaluated in the camera space and normalized between 0 and 1. Therefore, if no object is occluded
* by the shape to which the Interface0D belongs to, 1 is returned.
*/
class LIB_VIEW_MAP_EXPORT ZDiscontinuityF0D : public UnaryFunction0D<double>
class ZDiscontinuityF0D : public UnaryFunction0D<double>
{
public:
/*! Returns the string "ZDiscontinuityF0D" */
@@ -367,7 +367,7 @@ public:
/*! Returns a Vec2f giving the normalized 2D normal to the 1D element to which the Interface0DIterator& belongs to and
* evaluated at the Interface0D pointed by this Interface0DIterator&.
*/
class LIB_VIEW_MAP_EXPORT Normal2DF0D : public UnaryFunction0D<Vec2f>
class Normal2DF0D : public UnaryFunction0D<Vec2f>
{
public:
/*! Returns the string "Normal2DF0D" */
@@ -389,7 +389,7 @@ public:
* However, there still can be problematic cases, and the user willing to deal with this cases in a specific way
* should implement its own getMaterial functor.
*/
class LIB_VIEW_MAP_EXPORT MaterialF0D : public UnaryFunction0D<FrsMaterial>
class MaterialF0D : public UnaryFunction0D<FrsMaterial>
{
public:
/*! Returns the string "MaterialF0D" */
@@ -410,7 +410,7 @@ public:
* However, there still can be problematic cases, and the user willing to deal with this cases in a specific way
* should implement its own getShapeIdF0D functor.
*/
class LIB_VIEW_MAP_EXPORT ShapeIdF0D : public UnaryFunction0D<Id>
class ShapeIdF0D : public UnaryFunction0D<Id>
{
public:
/*! Returns the string "ShapeIdF0D" */
@@ -431,7 +431,7 @@ public:
* However, there still can be problematic cases, and the user willing to deal with this cases in a specific way
* should implement its own getQIF0D functor.
*/
class LIB_VIEW_MAP_EXPORT QuantitativeInvisibilityF0D : public UnaryFunction0D<unsigned int>
class QuantitativeInvisibilityF0D : public UnaryFunction0D<unsigned int>
{
public:
/*! Returns the string "QuantitativeInvisibilityF0D" */
@@ -446,7 +446,7 @@ public:
// CurveNatureF0D
/*! Returns the Nature::EdgeNature of the 1D element the Interface0DIterator& belongs to. */
class LIB_VIEW_MAP_EXPORT CurveNatureF0D : public UnaryFunction0D<Nature::EdgeNature>
class CurveNatureF0D : public UnaryFunction0D<Nature::EdgeNature>
{
public:
/*! Returns the string "QuantitativeInvisibilityF0D" */
@@ -461,7 +461,7 @@ public:
// GetShapeF0D
/*! Returns the ViewShape* containing the Interface0D */
class LIB_VIEW_MAP_EXPORT GetShapeF0D : public UnaryFunction0D< ViewShape*>
class GetShapeF0D : public UnaryFunction0D< ViewShape*>
{
public:
/*! Returns the string "GetShapeF0D" */
@@ -476,7 +476,7 @@ public:
// GetOccludersF0D
/*! Returns a vector containing the ViewShape* occluding the Interface0D */
class LIB_VIEW_MAP_EXPORT GetOccludersF0D : public UnaryFunction0D< std::vector<ViewShape*> >
class GetOccludersF0D : public UnaryFunction0D< std::vector<ViewShape*> >
{
public:
/*! Returns the string "GetOccludersF0D" */
@@ -491,7 +491,7 @@ public:
// GetOccludeeF0D
/*! Returns the ViewShape* "occluded" by the Interface0D */
class LIB_VIEW_MAP_EXPORT GetOccludeeF0D: public UnaryFunction0D< ViewShape*>
class GetOccludeeF0D: public UnaryFunction0D< ViewShape*>
{
public:
/*! Returns the string "GetOccludeeF0D" */
@@ -508,27 +508,21 @@ public:
/////////////////////////// Internal ////////////////////////////
// getFEdge
LIB_VIEW_MAP_EXPORT
FEdge *getFEdge(Interface0D& it1, Interface0D& it2);
// getFEdges
LIB_VIEW_MAP_EXPORT
void getFEdges(Interface0DIterator& it, FEdge *&fe1, FEdge *&fe2);
// getViewEdges
LIB_VIEW_MAP_EXPORT
void getViewEdges(Interface0DIterator& it, ViewEdge *&ve1, ViewEdge *&ve2);
// getShapeF0D
LIB_VIEW_MAP_EXPORT
ViewShape *getShapeF0D(Interface0DIterator& it);
// getOccludersF0D
LIB_VIEW_MAP_EXPORT
void getOccludersF0D(Interface0DIterator& it, std::set<ViewShape*>& oOccluders);
// getOccludeeF0D
LIB_VIEW_MAP_EXPORT
ViewShape *getOccludeeF0D(Interface0DIterator& it);
} // end of namespace Functions0D

View File

@@ -64,7 +64,7 @@ namespace Freestyle {
* - UnaryFunction1DVec3f
*/
template <class T>
class /*LIB_VIEW_MAP_EXPORT*/ UnaryFunction1D
class UnaryFunction1D
{
public:
T result;
@@ -187,7 +187,7 @@ namespace Functions1D {
// GetXF1D
/*! Returns the X 3D coordinate of an Interface1D. */
class LIB_VIEW_MAP_EXPORT GetXF1D : public UnaryFunction1D<double>
class GetXF1D : public UnaryFunction1D<double>
{
private:
Functions0D::GetXF0D _func;
@@ -211,7 +211,7 @@ public:
// GetYF1D
/*! Returns the Y 3D coordinate of an Interface1D. */
class LIB_VIEW_MAP_EXPORT GetYF1D : public UnaryFunction1D<double>
class GetYF1D : public UnaryFunction1D<double>
{
private:
Functions0D::GetYF0D _func;
@@ -235,7 +235,7 @@ public:
// GetZF1D
/*! Returns the Z 3D coordinate of an Interface1D. */
class LIB_VIEW_MAP_EXPORT GetZF1D : public UnaryFunction1D<double>
class GetZF1D : public UnaryFunction1D<double>
{
private:
Functions0D::GetZF0D _func;
@@ -259,7 +259,7 @@ public:
// GetProjectedXF1D
/*! Returns the projected X 3D coordinate of an Interface1D. */
class LIB_VIEW_MAP_EXPORT GetProjectedXF1D : public UnaryFunction1D<double>
class GetProjectedXF1D : public UnaryFunction1D<double>
{
private:
Functions0D::GetProjectedXF0D _func;
@@ -283,7 +283,7 @@ public:
// GetProjectedYF1D
/*! Returns the projected Y 3D coordinate of an Interface1D. */
class LIB_VIEW_MAP_EXPORT GetProjectedYF1D : public UnaryFunction1D<double>
class GetProjectedYF1D : public UnaryFunction1D<double>
{
private:
Functions0D::GetProjectedYF0D _func;
@@ -307,7 +307,7 @@ public:
// GetProjectedZF1D
/*! Returns the projected Z 3D coordinate of an Interface1D. */
class LIB_VIEW_MAP_EXPORT GetProjectedZF1D : public UnaryFunction1D<double>
class GetProjectedZF1D : public UnaryFunction1D<double>
{
private:
Functions0D::GetProjectedZF0D _func;
@@ -331,7 +331,7 @@ public:
// Orientation2DF1D
/*! Returns the 2D orientation as a Vec2f*/
class LIB_VIEW_MAP_EXPORT Orientation2DF1D : public UnaryFunction1D<Vec2f>
class Orientation2DF1D : public UnaryFunction1D<Vec2f>
{
private:
Functions0D::VertexOrientation2DF0D _func;
@@ -355,7 +355,7 @@ public:
// Orientation3DF1D
/*! Returns the 3D orientation as a Vec3f. */
class LIB_VIEW_MAP_EXPORT Orientation3DF1D : public UnaryFunction1D<Vec3f>
class Orientation3DF1D : public UnaryFunction1D<Vec3f>
{
private:
Functions0D::VertexOrientation3DF0D _func;
@@ -382,7 +382,7 @@ public:
* This distance is evaluated in the camera space and normalized between 0 and 1. Therefore, if no object is occluded
* by the shape to which the Interface1D belongs to, 1 is returned.
*/
class LIB_VIEW_MAP_EXPORT ZDiscontinuityF1D : public UnaryFunction1D<double>
class ZDiscontinuityF1D : public UnaryFunction1D<double>
{
private:
Functions0D::ZDiscontinuityF0D _func;
@@ -410,7 +410,7 @@ public:
* results of a chaining (chain, stroke), then it might be made of several 1D elements of different
* Quantitative Invisibilities.
*/
class LIB_VIEW_MAP_EXPORT QuantitativeInvisibilityF1D : public UnaryFunction1D<unsigned>
class QuantitativeInvisibilityF1D : public UnaryFunction1D<unsigned>
{
private:
Functions0D::QuantitativeInvisibilityF0D _func;
@@ -438,7 +438,7 @@ public:
* Indeed, the Interface1D might result from the gathering of several 1D elements, each one being of a different
* nature. An integration method, such as the MEAN, might give, in this case, irrelevant results.
*/
class LIB_VIEW_MAP_EXPORT CurveNatureF1D : public UnaryFunction1D<Nature::EdgeNature>
class CurveNatureF1D : public UnaryFunction1D<Nature::EdgeNature>
{
private:
Functions0D::CurveNatureF0D _func;
@@ -462,7 +462,7 @@ public:
// TimeStampF1D
/*! Returns the time stamp of the Interface1D. */
class LIB_VIEW_MAP_EXPORT TimeStampF1D : public UnaryFunction1D_void
class TimeStampF1D : public UnaryFunction1D_void
{
public:
/*! Returns the string "TimeStampF1D" */
@@ -477,7 +477,7 @@ public:
// IncrementChainingTimeStampF1D
/*! Increments the chaining time stamp of the Interface1D. */
class LIB_VIEW_MAP_EXPORT IncrementChainingTimeStampF1D : public UnaryFunction1D_void
class IncrementChainingTimeStampF1D : public UnaryFunction1D_void
{
public:
/*! Returns the string "IncrementChainingTimeStampF1D" */
@@ -492,7 +492,7 @@ public:
// ChainingTimeStampF1D
/*! Sets the chaining time stamp of the Interface1D. */
class LIB_VIEW_MAP_EXPORT ChainingTimeStampF1D : public UnaryFunction1D_void
class ChainingTimeStampF1D : public UnaryFunction1D_void
{
public:
/*! Returns the string "ChainingTimeStampF1D" */
@@ -508,7 +508,7 @@ public:
// Curvature2DAngleF1D
/*! Returns the 2D curvature as an angle for an Interface1D. */
class LIB_VIEW_MAP_EXPORT Curvature2DAngleF1D : public UnaryFunction1D<double>
class Curvature2DAngleF1D : public UnaryFunction1D<double>
{
public:
/*! Builds the functor.
@@ -536,7 +536,7 @@ private:
// Normal2DF1D
/*! Returns the 2D normal for an interface 1D. */
class LIB_VIEW_MAP_EXPORT Normal2DF1D : public UnaryFunction1D<Vec2f>
class Normal2DF1D : public UnaryFunction1D<Vec2f>
{
public:
/*! Builds the functor.
@@ -564,7 +564,7 @@ private:
// GetShapeF1D
/*! Returns list of shapes covered by this Interface1D. */
class LIB_VIEW_MAP_EXPORT GetShapeF1D : public UnaryFunction1D<std::vector<ViewShape*> >
class GetShapeF1D : public UnaryFunction1D<std::vector<ViewShape*> >
{
public:
/*! Builds the functor. */
@@ -582,7 +582,7 @@ public:
// GetOccludersF1D
/*! Returns list of occluding shapes covered by this Interface1D. */
class LIB_VIEW_MAP_EXPORT GetOccludersF1D : public UnaryFunction1D<std::vector<ViewShape*> >
class GetOccludersF1D : public UnaryFunction1D<std::vector<ViewShape*> >
{
public:
/*! Builds the functor. */
@@ -600,7 +600,7 @@ public:
// GetOccludeeF1D
/*! Returns list of occluded shapes covered by this Interface1D. */
class LIB_VIEW_MAP_EXPORT GetOccludeeF1D : public UnaryFunction1D<std::vector<ViewShape*> >
class GetOccludeeF1D : public UnaryFunction1D<std::vector<ViewShape*> >
{
public:
/*! Builds the functor. */
@@ -620,15 +620,12 @@ public:
////////////
// getOccludeeF1D
LIB_VIEW_MAP_EXPORT
void getOccludeeF1D(Interface1D& inter, set<ViewShape*>& oShapes);
// getOccludersF1D
LIB_VIEW_MAP_EXPORT
void getOccludersF1D(Interface1D& inter, set<ViewShape*>& oShapes);
// getShapeF1D
LIB_VIEW_MAP_EXPORT
void getShapeF1D(Interface1D& inter, set<ViewShape*>& oShapes);
} // end of namespace Functions1D

View File

@@ -74,7 +74,7 @@ class ViewVertex;
class SShape;
/*! Class to define a vertex of the embedding. */
class LIB_VIEW_MAP_EXPORT SVertex : public Interface0D
class SVertex : public Interface0D
{
public: // Implementation of Interface0D
/*! Returns the string "SVertex" .*/
@@ -462,7 +462,7 @@ class ViewEdge;
* This class is specialized into a smooth and a sharp version since their properties slightly vary from
* one to the other.
*/
class LIB_VIEW_MAP_EXPORT FEdge : public Interface1D
class FEdge : public Interface1D
{
public: // Implementation of Interface0D
/*! Returns the string "FEdge". */
@@ -1103,7 +1103,7 @@ Interface0DIterator FEdge::pointsEnd(float t)
* by two faces of the mesh. Face a lies on its right whereas Face b lies on its left.
* If it is a border edge, then it doesn't have any face on its right, and thus Face a = 0.
*/
class LIB_VIEW_MAP_EXPORT FEdgeSharp : public FEdge
class FEdgeSharp : public FEdge
{
protected:
Vec3r _aNormal; // When following the edge, normal of the right face
@@ -1246,7 +1246,7 @@ public:
/*! Class defining a smooth edge. This kind of edge typically runs across a face of the input mesh. It can be
* a silhouette, a ridge or valley, a suggestive contour.
*/
class LIB_VIEW_MAP_EXPORT FEdgeSmooth : public FEdge
class FEdgeSmooth : public FEdge
{
protected:
Vec3r _Normal;
@@ -1366,7 +1366,7 @@ public:
/*! Class to define a feature shape. It is the gathering of feature elements from an identified input shape */
class LIB_VIEW_MAP_EXPORT SShape
class SShape
{
private:
vector<FEdge*> _chains; // list of fedges that are chains starting points.

View File

@@ -46,7 +46,7 @@ using namespace Geometry;
class SVertex;
class FEdge;
class LIB_VIEW_MAP_EXPORT SilhouetteGeomEngine
class SilhouetteGeomEngine
{
private:
// The viewpoint under which the silhouette has to be computed

View File

@@ -51,7 +51,7 @@ class GrayImage;
/*! This class checks for every FEdge in which steerable it belongs and stores the mapping allowing to retrieve
* this information from the FEdge Id.
*/
class LIB_VIEW_MAP_EXPORT SteerableViewMap
class SteerableViewMap
{
protected:
// for each vector the list of nbOrientations weigths corresponding to its contributions

View File

@@ -183,7 +183,7 @@ class ViewVertex;
class ViewEdge;
class ViewShape;
class LIB_VIEW_MAP_EXPORT ViewEdgeXBuilder
class ViewEdgeXBuilder
{
protected:
int _currentViewId; // Id for view edges

View File

@@ -65,7 +65,7 @@ class ViewShape;
class TVertex;
/*! Class defining the ViewMap.*/
class LIB_VIEW_MAP_EXPORT ViewMap
class ViewMap
{
public:
typedef vector<ViewEdge*> viewedges_container;
@@ -268,7 +268,7 @@ class orientedViewEdgeIterator;
* NonTVertex when it corresponds to a vertex of the initial input mesh (it is the case for vertices such as corners
* for example). Thus, this class can be specialized into two classes, the TVertex class and the NonTVertex class.
*/
class LIB_VIEW_MAP_EXPORT ViewVertex : public Interface0D
class ViewVertex : public Interface0D
{
public: // Implementation of Interface0D
/*! Returns the string "ViewVertex". */
@@ -386,7 +386,7 @@ public:
* Basically the front edge hides part of the back edge.
* So, among the back edges, 1 is of invisibility n and the other of visibility n+1
*/
class LIB_VIEW_MAP_EXPORT TVertex : public ViewVertex
class TVertex : public ViewVertex
{
public:
typedef vector<directedViewEdge*> edge_pointers_container;
@@ -660,7 +660,7 @@ public:
* Associated to a single SVertex.
* Can be associated to 2 or several view edges
*/
class LIB_VIEW_MAP_EXPORT NonTVertex : public ViewVertex
class NonTVertex : public ViewVertex
{
public:
typedef vector<directedViewEdge> edges_container;
@@ -891,7 +891,7 @@ template<class Traits> class vertex_iterator_base;
/*! Class defining a ViewEdge. A ViewEdge in an edge of the image graph. it connects two ViewVertex.
* It is made by connecting a set of FEdges.
*/
class LIB_VIEW_MAP_EXPORT ViewEdge : public Interface1D
class ViewEdge : public Interface1D
{
public: // Implementation of Interface0D
/*! Returns the string "ViewEdge". */
@@ -1392,7 +1392,7 @@ public:
/**********************************/
/*! Class gathering the elements of the ViewMap (ViewVertex, ViewEdge) that are issued from the same input shape. */
class LIB_VIEW_MAP_EXPORT ViewShape
class ViewShape
{
private:
vector<ViewVertex*> _Vertices;

View File

@@ -60,7 +60,7 @@ namespace Freestyle {
using namespace Geometry;
class LIB_VIEW_MAP_EXPORT ViewMapBuilder
class ViewMapBuilder
{
private:
ViewMap *_ViewMap; // result

View File

@@ -42,10 +42,8 @@ namespace ViewMapIO {
static const unsigned ZERO = UINT_MAX;
LIB_VIEW_MAP_EXPORT
int load(istream& in, ViewMap *vm, ProgressBar *pb = NULL);
LIB_VIEW_MAP_EXPORT
int save(ostream& out, ViewMap *vm, ProgressBar *pb = NULL);
namespace Options {
@@ -53,22 +51,16 @@ namespace Options {
static const unsigned char FLOAT_VECTORS = 1;
static const unsigned char NO_OCCLUDERS = 2;
LIB_VIEW_MAP_EXPORT
void setFlags(const unsigned char flags);
LIB_VIEW_MAP_EXPORT
void addFlags(const unsigned char flags);
LIB_VIEW_MAP_EXPORT
void rmFlags(const unsigned char flags);
LIB_VIEW_MAP_EXPORT
unsigned char getFlags();
LIB_VIEW_MAP_EXPORT
void setModelsPath(const string& path);
LIB_VIEW_MAP_EXPORT
string getModelsPath();
}; // End of namepace Options

View File

@@ -50,7 +50,7 @@ class NodeGroup;
class SShape;
class WShape;
class LIB_VIEW_MAP_EXPORT ViewMapTesselator
class ViewMapTesselator
{
public:
inline ViewMapTesselator()

View File

@@ -61,7 +61,7 @@ using namespace Geometry;
class WVertex;
class LIB_WINGED_EDGE_EXPORT CurvatureInfo
class CurvatureInfo
{
public:
CurvatureInfo()
@@ -133,21 +133,21 @@ public:
#endif
};
bool LIB_WINGED_EDGE_EXPORT gts_vertex_mean_curvature_normal(WVertex *v, Vec3r &n);
bool gts_vertex_mean_curvature_normal(WVertex *v, Vec3r &n);
bool LIB_WINGED_EDGE_EXPORT gts_vertex_gaussian_curvature(WVertex *v, real *Kg);
bool gts_vertex_gaussian_curvature(WVertex *v, real *Kg);
void LIB_WINGED_EDGE_EXPORT gts_vertex_principal_curvatures(real Kh, real Kg, real *K1, real *K2);
void gts_vertex_principal_curvatures(real Kh, real Kg, real *K1, real *K2);
void LIB_WINGED_EDGE_EXPORT gts_vertex_principal_directions(WVertex *v, Vec3r Kh, real Kg, Vec3r &e1, Vec3r &e2);
void gts_vertex_principal_directions(WVertex *v, Vec3r Kh, real Kg, Vec3r &e1, Vec3r &e2);
namespace OGF {
class NormalCycle ;
void LIB_WINGED_EDGE_EXPORT compute_curvature_tensor( WVertex *start, double radius, NormalCycle& nc);
void compute_curvature_tensor( WVertex *start, double radius, NormalCycle& nc);
void LIB_WINGED_EDGE_EXPORT compute_curvature_tensor_one_ring(WVertex *start, NormalCycle& nc);
void compute_curvature_tensor_one_ring(WVertex *start, NormalCycle& nc);
} // OGF namespace

View File

@@ -470,7 +470,6 @@ WShape *WFace::getShape()
* *
**********************************/
LIB_WINGED_EDGE_EXPORT
unsigned WShape::_SceneCurrentId = 0;
WShape *WShape::duplicate()

View File

@@ -64,7 +64,7 @@ class WEdge;
class WShape;
class WFace;
class LIB_WINGED_EDGE_EXPORT WVertex
class WVertex
{
protected:
int _Id; // an identificator
@@ -166,7 +166,7 @@ public:
#if defined(__GNUC__) && (__GNUC__ < 3)
class incoming_edge_iterator : public input_iterator<WOEdge *, ptrdiff_t>
#else
class LIB_WINGED_EDGE_EXPORT incoming_edge_iterator
class incoming_edge_iterator
: public iterator<input_iterator_tag, WOEdge *, ptrdiff_t>
#endif
{
@@ -254,7 +254,7 @@ public:
#if defined(__GNUC__) && (__GNUC__ < 3)
class face_iterator : public input_iterator<WFace *, ptrdiff_t>
#else
class LIB_WINGED_EDGE_EXPORT face_iterator : public iterator<input_iterator_tag, WFace *, ptrdiff_t>
class face_iterator : public iterator<input_iterator_tag, WFace *, ptrdiff_t>
#endif
{
private:
@@ -366,7 +366,7 @@ public:
class WFace;
class WEdge;
class LIB_WINGED_EDGE_EXPORT WOEdge
class WOEdge
{
protected:
#if 0
@@ -549,7 +549,7 @@ public:
* *
**********************************/
class LIB_WINGED_EDGE_EXPORT WEdge
class WEdge
{
protected:
WOEdge *_paOEdge; // first oriented edge
@@ -737,7 +737,7 @@ public:
**********************************/
class LIB_WINGED_EDGE_EXPORT WFace
class WFace
{
protected:
vector<WOEdge *> _OEdgeList; // list of oriented edges of bording the face
@@ -1020,7 +1020,7 @@ public:
**********************************/
class LIB_WINGED_EDGE_EXPORT WShape
class WShape
{
protected:
vector<WVertex *> _VertexList;

View File

@@ -40,7 +40,7 @@
namespace Freestyle {
class LIB_WINGED_EDGE_EXPORT WFillGrid
class WFillGrid
{
public:
inline WFillGrid(Grid *grid = NULL, WingedEdge *winged_edge = NULL)

View File

@@ -35,7 +35,7 @@
namespace Freestyle {
class LIB_WINGED_EDGE_EXPORT WSFillGrid
class WSFillGrid
{
public:
inline WSFillGrid(Grid *grid = NULL, WingedEdge *winged_edge = NULL)

View File

@@ -327,7 +327,7 @@ public:
*/
class WXFace;
class LIB_WINGED_EDGE_EXPORT WXFaceLayer
class WXFaceLayer
{
public:
void *userdata;

View File

@@ -35,7 +35,7 @@
namespace Freestyle {
class LIB_WINGED_EDGE_EXPORT WXEdgeBuilder : public WingedEdgeBuilder
class WXEdgeBuilder : public WingedEdgeBuilder
{
public:
WXEdgeBuilder() : WingedEdgeBuilder() {}

View File

@@ -40,7 +40,7 @@
namespace Freestyle {
class LIB_WINGED_EDGE_EXPORT WingedEdgeBuilder : public SceneVisitor
class WingedEdgeBuilder : public SceneVisitor
{
public:
inline WingedEdgeBuilder() : SceneVisitor()