Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
VCChannel.h
Go to the documentation of this file.
1//! @file VCChannel.h
2//! @brief CVCChannel class for handling vertex color channel
3//!
4//////////////////////////////////////////////////////////////////////
5
6#if !defined(AFX_VCCHANNEL_H__79EB93C6_8866_11D3_A029_8FE73A9B677B__INCLUDED_)
7#define AFX_VCCHANNEL_H__79EB93C6_8866_11D3_A029_8FE73A9B677B__INCLUDED_
8
9#ifdef _MSC_VER
10#pragma once
11#endif // _MSC_VER
12
13#include "Channel.h"
14
15BEGIN_MOOTOOLS_NAMESPACE
16
17//! @class CVCChannel
18//! @brief CVCChannel is the channel class dedicated to vertex colors.
19//! @details CVCChannel belongs to CDependentChannels and is referenced by the VC_CHANNEL identifier.
20class DLL_3DFUNCTION CVCChannel : public CChannel
21{
22 DECLARE_SERIAL_XOBJECT(CVCChannel);
23
24public:
25 CVCChannel(ChannelID id = CHANNELID_UNDEFINED); // If id = CHANNELID_UNDEFINED, the id is automatically assigned when adding the channel to object channels. If id != CHANNELID_UNDEFINED, the id might be modified if it already exists in object channels
26 virtual ~CVCChannel(); // Use Delete instead, unless the CVCChannel is created on the stack (take care that it is referenced once only in this case)
27
28 // VC Channel informations
29 CVCPointList *GetVCPointList();
30 CVCFaceList *GetVCFaceList();
31
32 // Retrieve vertex color frontier flags...
33 void InitVCFrontierFlag(const CGeomInfo *info, int tolerance, bool reinitPointFlag);
34 bool IsVCFrontier(const CGeomInfo *info, int tolerance, const C3DEdge& edge, int face1, int face2);
35
36 // Virtuals
37 virtual bool Compare(const CPt *pt1, const CPt *pt2, double tolerance = 0.0f) const;
38
39protected:
40};
41
42END_MOOTOOLS_NAMESPACE
43
44#endif // !defined(AFX_VCCHANNEL_H__79EB93C6_8866_11D3_A029_8FE73A9B677B__INCLUDED_)
CChannel class definition which is the base class for object channels (UV, normals....
C3DEdge is a class containing 2 point indexes that represent the edge of a face.
Definition FaceList.h:72
The class defines an x, y, z 3D point which can use int, float or double.
Definition 3DPoint.h:27
A CChannel is the base class for some additional information associated to an object.
Definition Channel.h:93
virtual bool Compare(const CChannel *channel) const
Return true if the channel have same type and same content.
CGeomInfo is an helper class oftenly required by different methods.
Definition GeomInfo.h:71
CPt base only contains some flags that are used by the derived class.
Definition Point.h:60
CVCChannel is the channel class dedicated to vertex colors.
Definition VCChannel.h:21
CVCFaceList is a CFaceList that contains CVCFace. It usually belongs to a CVCChannel.
Definition VCFaceList.h:21
CVCPointList is an array of CVCPoint. It usually belongs to a CVCChannel.
Definition VCPointList.h:46