Blender  V2.93
Namespaces | Macros | Functions | Variables
ViewMapIO.cpp File Reference

Functions to manage I/O for the view map. More...

#include <climits>
#include "ViewMapIO.h"

Go to the source code of this file.

Namespaces

 Freestyle
 inherits from class Rep
 
 Freestyle::ViewMapIO
 
 Freestyle::ViewMapIO::Internal
 
 Freestyle::ViewMapIO::Options
 
 Freestyle::ViewMapIO::Options::Internal
 

Macros

#define WRITE(n)   out.write((const char *)(&(n)), sizeof((n)))
 
#define READ(n)   in.read((char *)(&(n)), sizeof((n)))
 
#define WRITE_IF_NON_NULL(ptr)
 
#define READ_IF_NON_NULL(ptr, array)
 
#define SET_PROGRESS(n)
 

Functions

int Freestyle::ViewMapIO::Internal::load (istream &in, Vec3r &v)
 
int Freestyle::ViewMapIO::Internal::load (istream &in, Polygon3r &p)
 
int Freestyle::ViewMapIO::Internal::load (istream &in, FrsMaterial &m)
 
static int Freestyle::ViewMapIO::Internal::load (istream &in, ViewShape *vs)
 
static int Freestyle::ViewMapIO::Internal::load (istream &in, FEdge *fe)
 
static int Freestyle::ViewMapIO::Internal::load (istream &in, SVertex *sv)
 
static int Freestyle::ViewMapIO::Internal::load (istream &in, ViewEdge *ve)
 
static int Freestyle::ViewMapIO::Internal::load (istream &in, ViewVertex *vv)
 
int Freestyle::ViewMapIO::Internal::save (ostream &out, const Vec3r &v)
 
int Freestyle::ViewMapIO::Internal::save (ostream &out, const Polygon3r &p)
 
int Freestyle::ViewMapIO::Internal::save (ostream &out, const FrsMaterial &m)
 
static int Freestyle::ViewMapIO::Internal::save (ostream &out, ViewShape *vs)
 
static int Freestyle::ViewMapIO::Internal::save (ostream &out, FEdge *fe)
 
static int Freestyle::ViewMapIO::Internal::save (ostream &out, SVertex *sv)
 
static int Freestyle::ViewMapIO::Internal::save (ostream &out, ViewEdge *ve)
 
static int Freestyle::ViewMapIO::Internal::save (ostream &out, ViewVertex *vv)
 
int Freestyle::ViewMapIO::load (istream &in, ViewMap *vm, ProgressBar *pb)
 
int Freestyle::ViewMapIO::save (ostream &out, ViewMap *vm, ProgressBar *pb)
 
void Freestyle::ViewMapIO::Options::setFlags (const unsigned char flags)
 
void Freestyle::ViewMapIO::Options::addFlags (const unsigned char flags)
 
void Freestyle::ViewMapIO::Options::rmFlags (const unsigned char flags)
 
unsigned char Freestyle::ViewMapIO::Options::getFlags ()
 
void Freestyle::ViewMapIO::Options::setModelsPath (const string &path)
 
string Freestyle::ViewMapIO::Options::getModelsPath ()
 

Variables

static ViewMap * Freestyle::ViewMapIO::Internal::g_vm
 
static unsigned char Freestyle::ViewMapIO::Options::Internal::g_flags = 0
 
static string Freestyle::ViewMapIO::Options::Internal::g_models_path
 

Detailed Description

Functions to manage I/O for the view map.

Definition in file ViewMapIO.cpp.

Macro Definition Documentation

◆ READ

#define READ (   n)    in.read((char *)(&(n)), sizeof((n)))

Definition at line 31 of file ViewMapIO.cpp.

◆ READ_IF_NON_NULL

#define READ_IF_NON_NULL (   ptr,
  array 
)
Value:
READ(tmp); \
if (tmp) { \
(ptr) = (array)[tmp]; \
} \
else { \
(ptr) = NULL; \
} \
(void)0
#define READ(n)
Definition: ViewMapIO.cpp:31
PointerRNA * ptr
Definition: wm_files.c:3157

Definition at line 43 of file ViewMapIO.cpp.

◆ SET_PROGRESS

#define SET_PROGRESS (   n)
Value:
if (pb) { \
pb->setProgress((n)); \
} \
(void)0

Definition at line 961 of file ViewMapIO.cpp.

◆ WRITE

#define WRITE (   n)    out.write((const char *)(&(n)), sizeof((n)))

Definition at line 30 of file ViewMapIO.cpp.

◆ WRITE_IF_NON_NULL

#define WRITE_IF_NON_NULL (   ptr)
Value:
if (ptr) { \
WRITE((ptr)->userdata); \
} \
else { \
WRITE(ZERO); \
} \
(void)0
#define ZERO
Definition: StrokeRep.cpp:99

Definition at line 34 of file ViewMapIO.cpp.