summaryrefslogtreecommitdiff
path: root/FESgui/src/lineTransformer.h
blob: 23b2b0ac721338d7a887b1476486cdad3d68764f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include "ofMain.h"
#include "colourPolyline.h"

class lineTransformer {

	public:
		lineTransformer(){
		}
		void static drawWarpFrame(glm::vec2 warpframe[4]);
		void static drawWarpFrame(glm::vec3 warpframe[4]);
		void static gaussianElimination(float * input, int n);
		glm::mat4 static getPerspectiveTransformMatrix(const glm::vec2 src[4], const glm::vec2 dst[4]);
		ofPolyline static polyLineTransform(const ofMatrix4x4 xform,const ofPolyline& poly);
		ofPolyline static polyLineTransform(ofPoint (*transferFunction)(const ofPoint),const ofPolyline& poly);
		colourPolyline static polyLineTransform(const ofMatrix4x4 xform,colourPolyline& poly,float colourFade=1.0f);
		colourPolyline static polyLineTransform(ofPoint (*transferFunction)(const ofPoint),colourPolyline& poly,float colourFade=1.0f);
		ofPolyline static makePolygon(int num,float diam);
		void static drawPoly(ofPolyline poly,float x,float y);

};