all included from used_types.h have been made self sufficient
This commit is contained in:
parent
0b99eaa7b2
commit
4f3162ece5
|
|
@ -23,7 +23,6 @@
|
||||||
#ifndef VCG_USED_TYPES_H
|
#ifndef VCG_USED_TYPES_H
|
||||||
#define VCG_USED_TYPES_H
|
#define VCG_USED_TYPES_H
|
||||||
|
|
||||||
#include <vcg/space/point3.h>
|
|
||||||
#include <vcg/space/box3.h>
|
#include <vcg/space/box3.h>
|
||||||
#include <vcg/space/color4.h>
|
#include <vcg/space/color4.h>
|
||||||
#include <vcg/math/shot.h>
|
#include <vcg/math/shot.h>
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,18 @@
|
||||||
* for more details. *
|
* for more details. *
|
||||||
* *
|
* *
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include <vcg/complex/complex.h>
|
|
||||||
|
|
||||||
#ifndef __VCG_HEDGE_
|
#ifndef __VCG_HEDGE_
|
||||||
#define __VCG_HEDGE_
|
#define __VCG_HEDGE_
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include <vcg/complex/all_types.h>
|
||||||
|
#include <vcg/container/derivation_chain.h>
|
||||||
|
|
||||||
|
#include "hedge_component.h"
|
||||||
|
|
||||||
namespace vcg {
|
namespace vcg {
|
||||||
|
|
||||||
/*------------------------------------------------------------------*/
|
/*------------------------------------------------------------------*/
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,14 @@
|
||||||
* for more details. *
|
* for more details. *
|
||||||
* *
|
* *
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include <vcg/complex/complex.h>
|
|
||||||
|
|
||||||
#ifndef __VCG_HEDGE_COMPONENT
|
#ifndef __VCG_HEDGE_COMPONENT
|
||||||
#define __VCG_HEDGE_COMPONENT
|
#define __VCG_HEDGE_COMPONENT
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
#include <vector>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
namespace vcg {
|
namespace vcg {
|
||||||
namespace hedge {
|
namespace hedge {
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,21 @@
|
||||||
* for more details. *
|
* for more details. *
|
||||||
* *
|
* *
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#ifndef __VCG_MESH
|
//#ifndef __VCG_MESH
|
||||||
#error "This file should not be included alone. It is automatically included by complex.h"
|
//#error "This file should not be included alone. It is automatically included by complex.h"
|
||||||
#endif
|
//#endif
|
||||||
#ifndef __VCG_EDGE_PLUS
|
#ifndef __VCG_EDGE_PLUS
|
||||||
#define __VCG_EDGE_PLUS
|
#define __VCG_EDGE_PLUS
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
#include <vcg/complex/all_types.h>
|
||||||
|
#include <vcg/container/derivation_chain.h>
|
||||||
|
|
||||||
|
#include "component.h"
|
||||||
|
|
||||||
namespace vcg {
|
namespace vcg {
|
||||||
/*------------------------------------------------------------------*/
|
/*------------------------------------------------------------------*/
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,19 @@
|
||||||
* for more details. *
|
* for more details. *
|
||||||
* *
|
* *
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#ifndef __VCG_MESH
|
//#ifndef __VCG_MESH
|
||||||
#error "This file should not be included alone. It is automatically included by complex.h"
|
//#error "This file should not be included alone. It is automatically included by complex.h"
|
||||||
#endif
|
//#endif
|
||||||
#ifndef __VCG_EDGE_PLUS_COMPONENT
|
#ifndef __VCG_EDGE_PLUS_COMPONENT
|
||||||
#define __VCG_EDGE_PLUS_COMPONENT
|
#define __VCG_EDGE_PLUS_COMPONENT
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
#include <vector>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include <vcg/space/color4.h>
|
||||||
|
|
||||||
|
|
||||||
namespace vcg {
|
namespace vcg {
|
||||||
namespace edge {
|
namespace edge {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,20 @@
|
||||||
* for more details. *
|
* for more details. *
|
||||||
* *
|
* *
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#ifndef __VCG_MESH
|
//#ifndef __VCG_MESH
|
||||||
#error "This file should not be included alone. It is automatically included by complex.h"
|
//#error "This file should not be included alone. It is automatically included by complex.h"
|
||||||
#endif
|
//#endif
|
||||||
#ifndef __VCG_FACE_PLUS
|
#ifndef __VCG_FACE_PLUS
|
||||||
#define __VCG_FACE_PLUS
|
#define __VCG_FACE_PLUS
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include <vcg/complex/all_types.h>
|
||||||
|
#include <vcg/container/derivation_chain.h>
|
||||||
|
|
||||||
|
#include "component.h"
|
||||||
|
|
||||||
namespace vcg {
|
namespace vcg {
|
||||||
|
|
||||||
/*------------------------------------------------------------------*/
|
/*------------------------------------------------------------------*/
|
||||||
|
|
@ -163,16 +171,16 @@ public:
|
||||||
/// select the Face
|
/// select the Face
|
||||||
void SetS() {this->Flags() |=SELECTED;}
|
void SetS() {this->Flags() |=SELECTED;}
|
||||||
/// Un-select a Face
|
/// Un-select a Face
|
||||||
void ClearS() {this->Flags() &= ~SELECTED;}
|
void ClearS() {this->Flags() &= ~SELECTED;}
|
||||||
/// select the Face
|
/// select the Face
|
||||||
void SetV() {this->Flags() |=VISITED;}
|
void SetV() {this->Flags() |=VISITED;}
|
||||||
/// Un-select a Face
|
/// Un-select a Face
|
||||||
void ClearV() {this->Flags() &= ~VISITED;}
|
void ClearV() {this->Flags() &= ~VISITED;}
|
||||||
|
|
||||||
/// This function checks if the face is selected
|
/// This function checks if the face is selected
|
||||||
bool IsB(int i) const {return (this->cFlags() & (BORDER0<<i)) != 0;}
|
bool IsB(int i) const {return (this->cFlags() & (BORDER0<<i)) != 0;}
|
||||||
/// This function select the face
|
/// This function select the face
|
||||||
void SetB(int i) {this->Flags() |=(BORDER0<<i);}
|
void SetB(int i) {this->Flags() |=(BORDER0<<i);}
|
||||||
/// This funcion execute the inverse operation of SetS()
|
/// This funcion execute the inverse operation of SetS()
|
||||||
void ClearB(int i) {this->Flags() &= (~(BORDER0<<i));}
|
void ClearB(int i) {this->Flags() &= (~(BORDER0<<i));}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,18 @@
|
||||||
* for more details. *
|
* for more details. *
|
||||||
* *
|
* *
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#ifndef __VCG_MESH
|
//#ifndef __VCG_MESH
|
||||||
#error "This file should not be included alone. It is automatically included by complex.h"
|
//#error "This file should not be included alone. It is automatically included by complex.h"
|
||||||
#endif
|
//#endif
|
||||||
#ifndef __VCG_FACE_PLUS_COMPONENT
|
#ifndef __VCG_FACE_PLUS_COMPONENT
|
||||||
#define __VCG_FACE_PLUS_COMPONENT
|
#define __VCG_FACE_PLUS_COMPONENT
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
#include <vector>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include <vcg/space/color4.h>
|
||||||
|
#include <vcg/space/texcoord2.h>
|
||||||
|
|
||||||
namespace vcg {
|
namespace vcg {
|
||||||
namespace face {
|
namespace face {
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,15 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#ifndef __VCG_FACE_PLUS_COMPONENT_OCF
|
#ifndef __VCG_FACE_PLUS_COMPONENT_OCF
|
||||||
#define __VCG_FACE_PLUS_COMPONENT_OCF
|
#define __VCG_FACE_PLUS_COMPONENT_OCF
|
||||||
#ifndef __VCG_MESH
|
//#ifndef __VCG_MESH
|
||||||
#error "This file should not be included alone. It is automatically included by complex.h"
|
//#error "This file should not be included alone. It is automatically included by complex.h"
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include <vcg/space/color4.h>
|
||||||
|
#include <vcg/space/texcoord2.h>
|
||||||
|
|
||||||
namespace vcg {
|
namespace vcg {
|
||||||
namespace face {
|
namespace face {
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,10 @@
|
||||||
#ifndef __VCG_POLYGON_COMPONENT
|
#ifndef __VCG_POLYGON_COMPONENT
|
||||||
#define __VCG_POLYGON_COMPONENT
|
#define __VCG_POLYGON_COMPONENT
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
#include <vector>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
namespace vcg {
|
namespace vcg {
|
||||||
namespace face {
|
namespace face {
|
||||||
|
|
||||||
|
|
@ -60,7 +64,7 @@ public:
|
||||||
typedef typename T::VertexType::ScalarType ScalarType;
|
typedef typename T::VertexType::ScalarType ScalarType;
|
||||||
typedef typename T::VertexType VertexType;
|
typedef typename T::VertexType VertexType;
|
||||||
|
|
||||||
PFVAdj(){ _vpoly = NULL; }
|
PFVAdj(){ _vpoly = nullptr; }
|
||||||
/* Note: the destructor will not be called in general because there are no virtual destructors.
|
/* Note: the destructor will not be called in general because there are no virtual destructors.
|
||||||
* Instead, the job of deallocating the memory will be done by the face allocator.
|
* Instead, the job of deallocating the memory will be done by the face allocator.
|
||||||
* This destructor is only done for those who istance a face alone (outside a mesh)
|
* This destructor is only done for those who istance a face alone (outside a mesh)
|
||||||
|
|
|
||||||
|
|
@ -36,10 +36,13 @@ added
|
||||||
#ifndef __VCG_TETRA_PLUS
|
#ifndef __VCG_TETRA_PLUS
|
||||||
#define __VCG_TETRA_PLUS
|
#define __VCG_TETRA_PLUS
|
||||||
|
|
||||||
//#include <vcg/space/point3.h>
|
#include <vector>
|
||||||
//#include <vcg/space/texcoord2.h>
|
#include <string>
|
||||||
//#include <vcg/space/color4.h>
|
|
||||||
//#include <vcg/simplex/tetrahedron/component.h>
|
#include <vcg/complex/all_types.h>
|
||||||
|
#include <vcg/container/derivation_chain.h>
|
||||||
|
|
||||||
|
#include "component.h"
|
||||||
|
|
||||||
namespace vcg {
|
namespace vcg {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,8 @@ added
|
||||||
#define __VCG_TETRAHEDRON_PLUS_COMPONENT
|
#define __VCG_TETRAHEDRON_PLUS_COMPONENT
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include <vcg/space/color4.h>
|
||||||
#include <vcg/space/tetra3.h>
|
#include <vcg/space/tetra3.h>
|
||||||
|
|
||||||
namespace vcg {
|
namespace vcg {
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,17 @@
|
||||||
* for more details. *
|
* for more details. *
|
||||||
* *
|
* *
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#ifndef __VCG_MESH
|
//#ifndef __VCG_MESH
|
||||||
#error "This file should not be included alone. It is automatically included by complex.h"
|
//#error "This file should not be included alone. It is automatically included by complex.h"
|
||||||
#endif
|
//#endif
|
||||||
#ifndef __VCG_VERTEX_PLUS
|
#ifndef __VCG_VERTEX_PLUS
|
||||||
#define __VCG_VERTEX_PLUS
|
#define __VCG_VERTEX_PLUS
|
||||||
|
|
||||||
|
#include <vcg/complex/all_types.h>
|
||||||
|
#include <vcg/container/derivation_chain.h>
|
||||||
|
|
||||||
|
#include "component.h"
|
||||||
|
|
||||||
namespace vcg {
|
namespace vcg {
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,18 @@
|
||||||
* for more details. *
|
* for more details. *
|
||||||
* *
|
* *
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#ifndef __VCG_MESH
|
//#ifndef __VCG_MESH
|
||||||
#error "This file should not be included alone. It is automatically included by complex.h"
|
//#error "This file should not be included alone. It is automatically included by complex.h"
|
||||||
#endif
|
//#endif
|
||||||
#ifndef __VCG_VERTEX_PLUS_COMPONENT
|
#ifndef __VCG_VERTEX_PLUS_COMPONENT
|
||||||
#define __VCG_VERTEX_PLUS_COMPONENT
|
#define __VCG_VERTEX_PLUS_COMPONENT
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include <vcg/space/color4.h>
|
||||||
|
#include <vcg/space/texcoord2.h>
|
||||||
|
|
||||||
namespace vcg {
|
namespace vcg {
|
||||||
namespace vertex {
|
namespace vertex {
|
||||||
/** \addtogroup VertexComponentGroup
|
/** \addtogroup VertexComponentGroup
|
||||||
|
|
|
||||||
|
|
@ -25,14 +25,18 @@
|
||||||
OCF = Optional Component Fast (hopefully)
|
OCF = Optional Component Fast (hopefully)
|
||||||
compare with OCC(Optional Component Compact)
|
compare with OCC(Optional Component Compact)
|
||||||
*/
|
*/
|
||||||
#ifndef __VCG_MESH
|
//#ifndef __VCG_MESH
|
||||||
#error "This file should not be included alone. It is automatically included by complex.h"
|
//#error "This file should not be included alone. It is automatically included by complex.h"
|
||||||
#endif
|
//#endif
|
||||||
#ifndef __VCG_VERTEX_PLUS_COMPONENT_OCF
|
#ifndef __VCG_VERTEX_PLUS_COMPONENT_OCF
|
||||||
#define __VCG_VERTEX_PLUS_COMPONENT_OCF
|
#define __VCG_VERTEX_PLUS_COMPONENT_OCF
|
||||||
#ifndef __VCG_MESH
|
|
||||||
#error "This file should not be included alone. It is automatically included by complex.h"
|
#include <vector>
|
||||||
#endif
|
#include <string>
|
||||||
|
|
||||||
|
#include <vcg/space/color4.h>
|
||||||
|
#include <vcg/space/texcoord2.h>
|
||||||
|
|
||||||
|
|
||||||
namespace vcg {
|
namespace vcg {
|
||||||
namespace vertex {
|
namespace vertex {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue