Blender  V3.3
Public Types | Public Member Functions | List of all members
Freestyle::Id Class Reference

#include <Id.h>

Public Types

typedef unsigned id_type
 

Public Member Functions

 Id ()
 
 Id (id_type id)
 
 Id (id_type ifirst, id_type isecond)
 
 Id (const Id &iBrother)
 
Idoperator= (const Id &iBrother)
 
id_type getFirst () const
 
id_type getSecond () const
 
void setFirst (id_type first)
 
void setSecond (id_type second)
 
bool operator== (const Id &id) const
 
bool operator!= (const Id &id) const
 
bool operator< (const Id &id) const
 

Detailed Description

Class used to tag any object by an id. It is made of two unsigned integers.

Definition at line 19 of file Id.h.

Member Typedef Documentation

◆ id_type

typedef unsigned Freestyle::Id::id_type

Definition at line 21 of file Id.h.

Constructor & Destructor Documentation

◆ Id() [1/4]

Freestyle::Id::Id ( )
inline

Default constructor

Definition at line 24 of file Id.h.

◆ Id() [2/4]

Freestyle::Id::Id ( id_type  id)
inline

Builds an Id from an integer. The second number is set to 0.

Definition at line 33 of file Id.h.

References id.

◆ Id() [3/4]

Freestyle::Id::Id ( id_type  ifirst,
id_type  isecond 
)
inline

Builds the Id from the two numbers

Definition at line 40 of file Id.h.

◆ Id() [4/4]

Freestyle::Id::Id ( const Id iBrother)
inline

Copy constructor

Definition at line 47 of file Id.h.

Member Function Documentation

◆ getFirst()

id_type Freestyle::Id::getFirst ( ) const
inline

◆ getSecond()

id_type Freestyle::Id::getSecond ( ) const
inline

◆ operator!=()

bool Freestyle::Id::operator!= ( const Id id) const
inline

Operator!=

Definition at line 92 of file Id.h.

References id.

◆ operator<()

bool Freestyle::Id::operator< ( const Id id) const
inline

Operator<

Definition at line 98 of file Id.h.

◆ operator=()

Id& Freestyle::Id::operator= ( const Id iBrother)
inline

Operator=

Definition at line 54 of file Id.h.

◆ operator==()

bool Freestyle::Id::operator== ( const Id id) const
inline

Operator==

Definition at line 86 of file Id.h.

◆ setFirst()

void Freestyle::Id::setFirst ( id_type  first)
inline

Sets the first number constituting the Id

Definition at line 74 of file Id.h.

◆ setSecond()

void Freestyle::Id::setSecond ( id_type  second)
inline

Sets the second number constituting the Id

Definition at line 80 of file Id.h.

Referenced by Freestyle::__recursiveSplit(), Freestyle::Operators::sequentialSplit(), and Freestyle::ViewShape::SplitEdge().


The documentation for this class was generated from the following file: