Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
Channel.h File Reference

CChannel class definition which is the base class for object channels (UV, normals...) More...

Detailed Description

CChannel class definition which is the base class for object channels (UV, normals...)

#include "PointList.h"
#include "FaceList.h"
#include "CustomData.h"

Go to the source code of this file.

Classes

struct  ChannelConnectionInfo
 Used by GetChannelPointsConnectedToPoint. More...
 
class  CChannel
 A CChannel is the base class for some additional information associated to an object. More...
 

Macros

#define UVW_DEFAULT_CHANNNEL_ID   (CDependentChannels::GetFirstChannelIDByType(UVW_CHANNEL))
 
#define VC_DEFAULT_CHANNNEL_ID   (CDependentChannels::GetFirstChannelIDByType(VC_CHANNEL))
 
#define WEIGHT_DEFAULT_CHANNNEL_ID   (CDependentChannels::GetFirstChannelIDByType(WEIGHT_CHANNEL))
 
#define POINT_NORMAL_DEFAULT_CHANNNEL_ID   (CDependentChannels::GetFirstChannelIDByType(POINT_NORMAL_CHANNEL))
 
#define FACE_NORMAL_DEFAULT_CHANNNEL_ID   (CDependentChannels::GetFirstChannelIDByType(FACE_NORMAL_CHANNEL))
 
#define SPEC_NORMAL_DEFAULT_CHANNNEL_ID   (CDependentChannels::GetFirstChannelIDByType(SPEC_NORMAL_CHANNEL))
 

Typedefs

typedef enum Channel3DType Channel3DType
 
typedef enum CHANNEL_COPY_FLAGS CHANNEL_COPY_FLAGS
 
typedef enum CHANNEL_PROPERTIES CHANNEL_PROPERTIES
 
typedef struct ChannelConnectionInfo ChannelConnectionInfo
 

Enumerations

enum  Channel3DType {
  CHANNEL_TYPE_UNDEFINED = 0x00 , CHANNEL_UNKNOWN = 0x00 , UVW_CHANNEL = 0x01 , VC_CHANNEL = 0x04 ,
  WEIGHT_CHANNEL = 0x08 , POINT_NORMAL_CHANNEL = 0x10 , FACE_NORMAL_CHANNEL = 0x20 , SPEC_NORMAL_CHANNEL = 0x40 ,
  ALL_CHANNELS_TYPE = 0xFFFF
}
 The channel type which can be used to cast to the appropriate class Bitwise operations can be use to test several kind of channel. More...
 
enum  CHANNEL_COPY_FLAGS {
  CHANNEL_COPY_DEFAULT = 0x00 , CHANNEL_COPY_INHERIT_ID = 0x01 , CHANNEL_COPY_ONLY_VALID = 0x02 , CHANNEL_COPY_ADD = 0x04 ,
  CHANNEL_COPY_EMPTY = 0x08 , CHANNEL_COPY_USEFUL_ONLY = 0x10 , CHANNEL_COPY_CLONE = 0x20
}
 
enum  CHANNEL_PROPERTIES {
  CHANNEL_NONE = 0x00 , CHANNEL_IS_INVALID = 0x01 , CHANNEL_CACHE_DATA = 0x02 , CHANNEL_INVALID_CACHE = 0x04 ,
  CHANNEL_IS_AUTOGENERATED = 0x08 , CHANNEL_SUPPORT_INCOMPLETE_FACES = 0x10 , CHANNEL_HAS_NO_FACE_OR_POINT = 0x20 , CHANNEL_RECOMPUTE_ON_TRIANGULATION = 0x40 ,
  CHANNEL_USER_PROPERTIES1 = 0x01000000 , CHANNEL_USER_PROPERTIES2 = 0x02000000 , CHANNEL_USER_PROPERTIES3 = 0x04000000 , CHANNEL_USER_PROPERTIES4 = 0x08000000
}
 

Enumeration Type Documentation

◆ Channel3DType

The channel type which can be used to cast to the appropriate class Bitwise operations can be use to test several kind of channel.

Enumerator
UVW_CHANNEL 

Texture channel.

VC_CHANNEL 

Vertex color channel.

WEIGHT_CHANNEL 

Float value channel.

POINT_NORMAL_CHANNEL 

Autogenerated point normal channel (one or several normals per point)

FACE_NORMAL_CHANNEL 

Autogenerated face normal channel (one normal per face)

SPEC_NORMAL_CHANNEL 

User specified normals channel.