contourLine.h File Reference

#include <BALL/common.h>
#include <BALL/DATATYPE/regularData2D.h>
#include <vector>

Go to the source code of this file.


Classes

class  BALL::TContourLine< T >

Namespaces

namespace  BALL

Defines

#define INTERPOL12
#define INTERPOL18
#define INTERPOL24
#define INTERPOL48

Typedefs

typedef TContourLine< floatBALL::ContourLine

Define Documentation

#define INTERPOL12
Value:
{ \
            vec = from.getCoordinates(from.getClosestIndex(Vector2(act_cell_x, act_cell_y)));\
            d1  = from[act_cell_x + act_cell_y*(number_of_cells_x+1)];\
            d2  = from[act_cell_x + 1 + act_cell_y*(number_of_cells_x+1)];\
            vec2 = from.getCoordinates(from.getClosestIndex(Vector2(act_cell_x + 1, act_cell_y + 1)));\
            slope = (d2 - d1) / (vec2.x - vec.x);\
            vec.x += (threshold - d1)/slope;\
            data_.push_back(vec);\
  }

Referenced by BALL::TContourLine< T >::createContourLine().

#define INTERPOL18
Value:
{ \
            vec = from.getCoordinates(from.getClosestIndex(Vector2(act_cell_x, act_cell_y)));\
            d1  = from[act_cell_x + act_cell_y*(number_of_cells_x+1)];\
            d2  = from[act_cell_x + (act_cell_y+1)*(number_of_cells_x+1)];\
            vec2 = from.getCoordinates(from.getClosestIndex(Vector2(act_cell_x, act_cell_y+1)));\
            slope = (d2 - d1) / (vec2.y - vec.y);\
            vec.y += (threshold - d1)/slope;\
            data_.push_back(vec);\
  }

Referenced by BALL::TContourLine< T >::createContourLine().

#define INTERPOL24
Value:
{  \
            vec = from.getCoordinates(from.getClosestIndex(Vector2(act_cell_x+1, act_cell_y)));\
            d1  = from[act_cell_x+1 + act_cell_y*(number_of_cells_x+1)];\
            d2  = from[act_cell_x+1 + (act_cell_y+1)*(number_of_cells_x+1)];\
            vec2 = from.getCoordinates(from.getClosestIndex(Vector2(act_cell_x+1, act_cell_y+1)));\
            slope = (d2 - d1) / (vec2.y - vec.y);\
            vec.y += (threshold - d1)/slope;\
            data_.push_back(vec);\
  }

Referenced by BALL::TContourLine< T >::createContourLine().

#define INTERPOL48
Value:
{  \
            vec = from.getCoordinates(from.getClosestIndex(Vector2(act_cell_x+1, act_cell_y+1)));\
            d1  = from[act_cell_x+1 + (act_cell_y+2)*(number_of_cells_x+1)];\
            d2  = from[act_cell_x   + (act_cell_y+1)*(number_of_cells_x+1)];\
            vec2 = from.getCoordinates(from.getClosestIndex(Vector2(act_cell_x, act_cell_y+1)));\
            slope = (d2 - d1) / (vec2.x - vec.x);\
            vec.x += (threshold - d1)/slope;\
            data_.push_back(vec);\
  }

Referenced by BALL::TContourLine< T >::createContourLine().