Public Member Functions | Public Attributes | List of all members
Triangle Class Reference

#include <MS3D.h>

+ Inheritance diagram for Triangle:

Public Member Functions

 Triangle (double cx, double cy, double th, double gain=1.0, int layoutNum=0, int lrMirror=0)
- Public Member Functions inherited from TouchSensor
void setColor (unsigned char r, unsigned char g, unsigned char b)
void setCalibrationFlag (bool use_calibrated_skin)
void resize (int width, int height, int margin)
virtual ~TouchSensor ()
int Abs (int x)
int get_nTaxels ()
void eval_light (unsigned char *image)
void eval (unsigned char *image)
void setActivationFirst7 (unsigned char *data)
void setActivationLast5 (unsigned char *data)
void setActivationFromPortData (double val, int id)
virtual void draw (unsigned char *image)

Public Attributes

float m_vertexNormals [3][3]
float m_s [3]
float m_t [3]
int m_vertexIndices [3]
- Public Attributes inherited from TouchSensor
int min_tax
int max_tax

Additional Inherited Members

- Protected Member Functions inherited from TouchSensor
 TouchSensor ()
void dither (int x, int y, unsigned char *image)
void drawLine (unsigned char *image, int x0, int y0, int x1, int y1)
void drawCircle (unsigned char *image, int cx, int cy, double radius)
- Protected Attributes inherited from TouchSensor
bool calibrated_skin
double dX [MAX_TAXELS]
double dY [MAX_TAXELS]
double dXv [8]
double dYv [8]
double dXc
double dYc
double dGain
int ilayoutNum
int ilrMirror
double m_Radius
double m_RadiusOrig
double activation [MAX_TAXELS]
double remapped_activation [MAX_TAXELS]
bool connected [MAX_TAXELS]
unsigned char R_MAX
unsigned char G_MAX
unsigned char B_MAX
int m_maxRangeLight
int x [MAX_TAXELS]
int y [MAX_TAXELS]
int xv [8]
int yv [8]
int nVerts
int nTaxels
int xMin
int xMax
int yMin
int yMax
int m_Width
int m_Height
- Static Protected Attributes inherited from TouchSensor
static double dXmin = VERY_FAR
static double dXmax =-VERY_FAR
static double dYmin = VERY_FAR
static double dYmax =-VERY_FAR
static int m_maxRange =0
static double * Exponential =0

Detailed Description

Definition at line 139 of file MS3D.h.

Constructor & Destructor Documentation

◆ Triangle()

Triangle::Triangle ( double  cx,
double  cy,
double  th,
double  gain = 1.0,
int  layoutNum = 0,
int  lrMirror = 0 

Definition at line 18 of file Triangle.h.

Member Data Documentation

◆ m_s

float Triangle::m_s[3]

Definition at line 142 of file MS3D.h.

◆ m_t

float Triangle::m_t[3]

Definition at line 142 of file MS3D.h.

◆ m_vertexIndices

int Triangle::m_vertexIndices[3]

Definition at line 143 of file MS3D.h.

◆ m_vertexNormals

float Triangle::m_vertexNormals[3][3]

Definition at line 141 of file MS3D.h.

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