vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ObjectMovement.cpp File Reference
#include "precompiled.h"
#include <vreckoAP/EditorQAbilities/ObjectMovement.h>
#include <vrecko/Scene.h>
#include <vrecko/EventDispatcher.h>
#include <osg/io_utils>
#include <vreckoAP/ObjectUtils/ObjectInfo.h>
#include <helpers/DynamicArray.h>
#include <helpers/HelperMacros.h>
#include <helpers/XercesXMLUtils.h>
#include <osg/BlendEquation>
#include <osg/CullFace>
#include <osg/Depth>
#include <osg/PolygonOffset>
#include <vrecko/PluginManager.h>

Namespaces

namespace  APEditorQAbilities
 

Macros

#define HORIZONTAL_MAX_ANGLE   (PI/180*10)
 
#define COPLANAR_MAX_ANGLE   HORIZONTAL_MAX_ANGLE
 
#define SNAP_PLANE_REACH_RATIO   1.5
 
#define SMALL_NUM   0.00000001
 
#define CALC_MAXMIN2(elem, min_1, min_2, maxmin)
 
#define ELEM_COMP_LIMIT   1.05f
 
#define VALID_CORNER_VAL_CLOSENESS   0.97f
 
#define MAX_SNAPPING_PLANES   3
 

Functions

int APEditorQAbilities::planesCompare (const ObjectMovement::CANDIDATEPLANE *elem1, const ObjectMovement::CANDIDATEPLANE *elem2)
 

Macro Definition Documentation

#define CALC_MAXMIN2 (   elem,
  min_1,
  min_2,
  maxmin 
)
Value:
{ \
if (elem->fMinU * elem->fMaxU <= 0.0f) { \
min_1 = 0.0f; \
} else { \
min_1 = (abs(elem->fMinU) < abs(elem->fMaxU)) ? abs(elem->fMinU) : abs(elem->fMaxU); \
} \
if (elem1->fMinV * elem1->fMaxV <= 0.0f) { \
min_2 = 0.0f; \
} else { \
min_2 = (abs(elem->fMinV) < abs(elem->fMaxV)) ? abs(elem->fMinV) : abs(elem->fMaxV); \
} \
maxmin = (min_1 > min_2) ? min_1 : min_2; \
}
#define COPLANAR_MAX_ANGLE   HORIZONTAL_MAX_ANGLE
#define ELEM_COMP_LIMIT   1.05f
#define HORIZONTAL_MAX_ANGLE   (PI/180*10)
#define MAX_SNAPPING_PLANES   3
#define SMALL_NUM   0.00000001
#define SNAP_PLANE_REACH_RATIO   1.5
#define VALID_CORNER_VAL_CLOSENESS   0.97f