add c++/guardedalloc to more freestyle classes, also remove redundant 'public:'

This commit is contained in:
Campbell Barton
2013-08-04 18:50:00 +00:00
parent 78d69a1e15
commit 5129112072
61 changed files with 137 additions and 60 deletions

View File

@@ -234,7 +234,6 @@ protected:
NodeDrawingStyle *_p2DSelectionNode;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:AppView")
#endif
};

View File

@@ -244,7 +244,6 @@ private:
FEdgeXDetector edgeDetector;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Controller")
#endif
};

View File

@@ -127,7 +127,6 @@ protected:
RenderMonitor *_pRenderMonitor;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:BlenderFileLoader")
#endif
};

View File

@@ -64,6 +64,11 @@ protected:
float get_stroke_vertex_z(void) const;
unsigned int get_stroke_mesh_id(void) const;
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:BlenderStrokeRenderer")
#endif
};
} /* namespace Freestyle */

View File

@@ -58,6 +58,11 @@ protected:
private:
struct Text *_text;
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:BlenderStyleModule")
#endif
};
} /* namespace Freestyle */

View File

@@ -43,6 +43,11 @@ protected:
protected:
virtual void loadStandardBrushes();
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:BlenderTextureManager")
#endif
};
} /* namespace Freestyle */

View File

@@ -136,7 +136,6 @@ private:
bool _empty;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:BBox")
#endif
};

View File

@@ -76,6 +76,11 @@ public:
protected:
Cell **_cells;
unsigned _cells_size;
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:FastGrid")
#endif
};
} /* namespace Freestyle */

View File

@@ -89,7 +89,6 @@ private:
OccludersSet _occluders;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Cell")
#endif
};
@@ -372,7 +371,6 @@ protected:
OccludersSet _occluders; // List of all occluders inserted in the grid
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Grid")
#endif
};
@@ -395,7 +393,6 @@ private:
OccludersSet::iterator it, end;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:VirtualOccludersSet")
#endif
};

View File

@@ -81,7 +81,6 @@ private:
// int start;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Noise")
#endif
};

View File

@@ -171,7 +171,6 @@ protected:
unsigned _id;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Geometry:Polygon")
#endif
};

View File

@@ -190,7 +190,6 @@ private:
bool _order; // true if A and B are in the same order than _edge.A and _edge.B. false otherwise.
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Segment")
#endif
};
@@ -337,7 +336,6 @@ private:
std::vector<Intersection<Segment<T, Point> > *> _Intersections; // the list of all intersections.
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:SweepLine")
#endif
};

View File

@@ -278,7 +278,6 @@ protected:
};
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:VecMat:Vec")
#endif
};
@@ -766,7 +765,6 @@ protected:
value_type _coord[_SIZE];
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:VecMat:Matrix")
#endif
};

View File

@@ -129,7 +129,6 @@ private:
int i_[3];
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:OGF:NormalCycle")
#endif
};

View File

@@ -115,7 +115,6 @@ protected:
void computeMask();
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:GaussianFilter")
#endif
};

View File

@@ -173,7 +173,6 @@ protected:
unsigned _Oy; // origin of the stored part
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:FrsImage")
#endif
};

View File

@@ -106,7 +106,6 @@ private:
bool LightingEnabled;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:DrawingStyle")
#endif
};

View File

@@ -259,7 +259,6 @@ private:
float Shininess;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:FrsMaterial")
#endif
};

View File

@@ -312,6 +312,11 @@ protected:
unsigned _TISize;
unsigned int _displayList;
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:IndexedFaceSet")
#endif
};
} /* namespace Freestyle */

View File

@@ -148,6 +148,11 @@ private:
LINES_STYLE _Style;
vector<Vec3r> _vertices;
float _width;
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:LineRep")
#endif
};
} /* namespace Freestyle */

View File

@@ -106,6 +106,11 @@ protected:
private:
BBox<Vec3r> _BBox;
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Node")
#endif
};
} /* namespace Freestyle */

View File

@@ -83,6 +83,11 @@ protected:
double projection_matrix_[16];
CameraType camera_type_;
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:NodeCamera")
#endif
};
class LIB_SCENE_GRAPH_EXPORT NodeOrthographicCamera : public NodeCamera
@@ -145,6 +150,11 @@ private:
double top_;
double zNear_;
double zFar_;
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:NodeOrthographicCamera")
#endif
};
class LIB_SCENE_GRAPH_EXPORT NodePerspectiveCamera : public NodeCamera
@@ -205,6 +215,11 @@ public:
* zFar-zNear
*/
NodePerspectiveCamera(double left, double right, double bottom, double top, double zNear, double zFar);
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:NodePerspectiveCamera")
#endif
};
} /* namespace Freestyle */

View File

@@ -101,6 +101,11 @@ public:
private:
DrawingStyle _DrawingStyle;
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:NodeDrawingStyle")
#endif
};
} /* namespace Freestyle */

View File

@@ -78,7 +78,6 @@ private:
}
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Module")
#endif
};

View File

@@ -270,7 +270,6 @@ private:
static StrokesContainer _current_strokes_set;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Operators")
#endif
};

View File

@@ -82,7 +82,6 @@ public:
}
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:UnaryPredicate0D")
#endif
};
@@ -133,7 +132,6 @@ public:
}
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:BinaryPredicate0D")
#endif
};

View File

@@ -303,7 +303,6 @@ private:
Vec3fMap *_userAttributesVec3f;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:StrokeAttribute")
#endif
};

View File

@@ -113,7 +113,6 @@ protected:
unsigned int _defaultTextureId;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:TextureManager")
#endif
};

View File

@@ -120,7 +120,6 @@ protected:
float _alpha;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:StrokeVertexRep")
#endif
};

View File

@@ -74,7 +74,6 @@ private:
bool _overloadFrsMaterial;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:StrokeTesselator")
#endif
};

View File

@@ -180,7 +180,6 @@ protected:
Interpreter *_inter;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:StyleModule")
#endif
};

View File

@@ -109,7 +109,6 @@ protected:
IteratorBase() {}
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:IteratorBase")
#endif
};

View File

@@ -73,7 +73,6 @@ private:
unsigned _ref_counter;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:BaseObject")
#endif
};

View File

@@ -66,7 +66,6 @@ private:
static exception_type _exception;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Exception")
#endif
};

View File

@@ -131,7 +131,6 @@ private:
id_type _second;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Id")
#endif
};

View File

@@ -61,7 +61,6 @@ protected:
string _language;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Interpreter")
#endif
};

View File

@@ -92,7 +92,6 @@ protected:
string _label;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:ProgressBar")
#endif
};

View File

@@ -57,7 +57,6 @@ protected:
static real _values[NB_VALUE_NOISE];
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:PseudoNoise")
#endif
};

View File

@@ -50,7 +50,6 @@ private:
static void next();
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:RandGen")
#endif
};

View File

@@ -72,7 +72,6 @@ protected:
Render *_re;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:RenderMonitor")
#endif
};

View File

@@ -72,7 +72,6 @@ private:
unsigned _time_stamp;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:TimeStamp")
#endif
};

View File

@@ -60,7 +60,6 @@ private:
clock_t _start;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Chronometer")
#endif
};

View File

@@ -72,7 +72,6 @@ public:
WFace *face;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:BoxGrid:OccluderData")
#endif
};
@@ -137,7 +136,6 @@ public:
vector<OccluderData*>::iterator _current, _occludeeCandidate;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:BoxGrid:Iterator")
#endif
};
@@ -192,7 +190,6 @@ private:
bool _enableQI;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:BoxGrid")
#endif
};

View File

@@ -237,7 +237,6 @@ protected:
RenderMonitor *_pRenderMonitor;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:FEdgeXDetector")
#endif
};

View File

@@ -125,7 +125,6 @@ protected:
IntegrationType _integration;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:UnaryFunction1D")
#endif
};
@@ -172,7 +171,6 @@ protected:
IntegrationType _integration;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:UnaryFunction1D_void")
#endif
};

View File

@@ -134,7 +134,6 @@ protected:
float _cellOrigin[2];
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:GridDensityProvider")
#endif
};

View File

@@ -226,7 +226,6 @@ protected:
unsigned _timeStamp;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Interface1D")
#endif
};

View File

@@ -72,7 +72,6 @@ protected:
void buildCachedPolygon();
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:OccluderSource")
#endif
};

View File

@@ -135,7 +135,6 @@ public:
vector<OccluderData*>::iterator _current, _occludeeCandidate;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:SphericalGrid:Iterator")
#endif
@@ -191,7 +190,6 @@ private:
bool _enableQI;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:SphericalGrid")
#endif
};

View File

@@ -150,7 +150,6 @@ protected:
void Build();
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:SteerableViewMap")
#endif
};

View File

@@ -293,7 +293,6 @@ protected:
ViewShape *_pCurrentVShape;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:ViewEdgeXBuilder")
#endif
};

View File

@@ -365,6 +365,11 @@ public:
/*! Returns an orientedViewEdgeIterator pointing to the ViewEdge given as argument. */
virtual ViewVertexInternal::orientedViewEdgeIterator edgesIterator(ViewEdge *iEdge) = 0;
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:ViewVertex")
#endif
};
/**********************************/
@@ -633,6 +638,11 @@ public:
/*! Returns an orientedViewEdgeIterator pointing to the ViewEdge given as argument. */
virtual ViewVertexInternal::orientedViewEdgeIterator edgesIterator(ViewEdge *iEdge);
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:TVertex")
#endif
};
@@ -845,6 +855,11 @@ public:
/*! Returns an orientedViewEdgeIterator pointing to the ViewEdge given as argument. */
virtual ViewVertexInternal::orientedViewEdgeIterator edgesIterator(ViewEdge *iEdge);
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:NonTVertex")
#endif
};
/**********************************/
@@ -1360,6 +1375,11 @@ public:
* the sampling value.
*/
virtual Interface0DIterator pointsEnd(float t = 0.0f);
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:ViewEdge")
#endif
};

View File

@@ -253,7 +253,6 @@ protected:
Vec3r& u, Vec3r& A, Vec3r& origin, Vec3r& edge, vector<WVertex*>& faceVertices);
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:ViewMapBuilder")
#endif
};

View File

@@ -219,6 +219,11 @@ public:
}
return 0;
}
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:orientedViewEdgeIterator")
#endif
};
} // ViewVertexInternal namespace
@@ -390,6 +395,11 @@ private:
FEdge *_previous_edge;
FEdge *_next_edge;
float _t; // curvilinear abscissa
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:SVertexIterator")
#endif
};
@@ -561,6 +571,11 @@ protected:
bool _orientation;
ViewEdge *_edge;
ViewEdge *_begin;
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:ViewEdgeIterator")
#endif
};
} // end of namespace ViewEdgeInternal

View File

@@ -104,7 +104,6 @@ private:
bool _overloadFrsMaterial;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:ViewMapTesselator")
#endif
};
@@ -121,6 +120,11 @@ protected:
{
iLine->AddVertex(v->point2D());
}
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:ViewMapTesselator2D")
#endif
};
/*! Class to tesselate the 3D silhouette */
@@ -135,6 +139,11 @@ protected:
{
iLine->AddVertex(v->point3D());
}
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:ViewMapTesselator3D")
#endif
};
//

View File

@@ -245,7 +245,6 @@ public:
virtual void increment();
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:WVertex:incoming_edge_iterator")
#endif
};
@@ -330,7 +329,6 @@ public:
}
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:WVertex:face_iterator")
#endif
};
@@ -1282,7 +1280,6 @@ protected:
WFace *face);
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:WShape")
#endif
};
@@ -1327,7 +1324,6 @@ private:
vector<WShape *> _wshapes;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:WingedEdge")
#endif
};

View File

@@ -84,7 +84,6 @@ private:
unsigned _polygon_id;
#ifdef WITH_CXX_GUARDEDALLOC
public:
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:WFillGrid")
#endif
};

View File

@@ -77,8 +77,13 @@ private:
Grid *_grid;
WingedEdge *_winged_edge;
unsigned _polygon_id;
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:WSFillGrid")
#endif
};
} /* namespace Freestyle */
#endif // __FREESTYLE_WS_FILL_GRID_H__
#endif // __FREESTYLE_WS_FILL_GRID_H__

View File

@@ -95,6 +95,11 @@ public:
{
return _curvatures;
}
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:WXVertex")
#endif
};
@@ -197,6 +202,11 @@ public:
{
_order = i;
}
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:WXEdge")
#endif
};
/**********************************
@@ -686,6 +696,11 @@ public:
(*wxf)->userdata = NULL;
}
}
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:WXFace")
#endif
};
@@ -782,6 +797,11 @@ public:
}
}
/*! accessors */
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:WXShape")
#endif
};
/*

View File

@@ -44,6 +44,11 @@ public:
protected:
virtual void buildWVertices(WShape& shape, const real *vertices, unsigned vsize);
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:WXEdgeBuilder")
#endif
};
} /* namespace Freestyle */

View File

@@ -147,8 +147,13 @@ private:
WingedEdge *_winged_edge;
Matrix44r *_current_matrix;
vector<Matrix44r *> _matrices_stack;
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:WingedEdgeBuilder")
#endif
};
} /* namespace Freestyle */
#endif // __FREESTYLE_WINGED_EDGE_BUILDER_H__
#endif // __FREESTYLE_WINGED_EDGE_BUILDER_H__