Panda3D
pandatool
src
egg-optchar
vertexMembership.h
1
// Filename: vertexMembership.h
2
// Created by: drose (21Jul03)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#ifndef VERTEXMEMBERSHIP_H
16
#define VERTEXMEMBERSHIP_H
17
18
#include "pandatoolbase.h"
19
20
#include "pvector.h"
21
22
class
EggGroup
;
23
24
////////////////////////////////////////////////////////////////////
25
// Class : VertexMembership
26
// Description : This class is used to help EggOptchar quantize the
27
// membership of one vertex among its various groups.
28
////////////////////////////////////////////////////////////////////
29
class
VertexMembership
{
30
public
:
31
INLINE
VertexMembership
(
EggGroup
*group,
double
membership);
32
INLINE VertexMembership(
const
VertexMembership ©);
33
INLINE
void
operator = (
const
VertexMembership ©);
34
35
INLINE
bool
operator < (
const
VertexMembership &other)
const
;
36
37
EggGroup
*_group;
38
double
_membership;
39
};
40
41
typedef
pvector<VertexMembership>
VertexMemberships
;
42
43
#include "vertexMembership.I"
44
45
#endif
46
pvector
This is our own Panda specialization on the default STL vector.
Definition:
pvector.h:39
EggGroup
The main glue of the egg hierarchy, this corresponds to the <Group>, <Instance>, and <Joint> type nod...
Definition:
eggGroup.h:36
VertexMembership
This class is used to help EggOptchar quantize the membership of one vertex among its various groups...
Definition:
vertexMembership.h:29
Generated on Wed May 17 2017 23:47:56 for Panda3D by
1.8.13