Axis.cpp ( File view )

  • By 鬼屋里的小鬼头 2013-11-28
  • View(s):159
  • Download(s):9
  • Point(s): 3
			// Axis.cpp: implementation of the Axis class.
//
// This class designed to move target point based on independent axis.
// It allows move target coordinate on rotated, scaled and gauche QR Code image
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "QRcodeDecoder.h"
#include "Axis.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

Axis::Axis(int myDECIMAL_POINT)
{

	DECIMAL_POINT=myDECIMAL_POINT;

}

Axis::~Axis()
{



}

Axis::Axis(int * angle, int TheModulePitch, int myDECIMAL_POINT)
{

	DECIMAL_POINT=myDECIMAL_POINT;
	sin = angle[0];
	cos = angle[1];
	modulePitch = TheModulePitch;
	//origin = new Point();

}

void Axis::setOrigin(Point TheOrigin)
{

	origin = TheOrigin;

}
	
	
void Axis::setModulePitch(int TheModulePitch)
{

	modulePitch = TheModulePitch;

}
	
Point Axis::translate(int moveX, int moveY)
{

	long dp = DECIMAL_POINT;
	Point point;
  	int dx = (moveX == 0) ? 0 : (modulePitch * moveX) >> dp;
  	int dy = (moveY == 0) ? 0 : (modulePitch * moveY) >> dp;		
  	point.translate((dx * cos - dy * sin) >> dp, (
...
...
(Please download the complete source code to view)
			
...
Expand> <Close

Want complete source code? Download it here

Point(s): 3

Download
0 lines left, continue to read
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
AlignmentPattern.cpp5.98 kB03-05-08|13:29
AlignmentPattern.h1.12 kB03-05-08|11:41
Axis.cpp1.98 kB03-05-08|01:14
Axis.h985.00 B03-05-08|08:47
ContentDecoder.cpp15.82 kB03-05-08|13:30
ContentDecoder.h2.19 kB03-05-08|13:11
FinderPattern.cpp15.89 kB03-05-08|10:35
FinderPattern.h1.58 kB03-05-08|10:34
Galois.cpp3.21 kB23-04-08|22:02
Galois.h950.00 B22-04-08|23:35
Line.cpp2.91 kB02-05-08|18:27
Line.h1.08 kB03-05-08|08:47
Point.cpp1.14 kB02-05-08|20:38
Point.h788.00 B02-05-08|20:39
QRcodeDecoder.aps21.07 kB04-05-08|12:13
QRcodeDecoder.clw2.15 kB04-05-08|12:14
QRcodeDecoder.cpp2.11 kB16-03-08|11:33
QRcodeDecoder.dsp5.46 kB03-05-08|10:58
QRcodeDecoder.dsw551.00 B16-03-08|11:33
QRcodeDecoder.h1.37 kB16-03-08|11:33
QRcodeDecoder.ncb145.00 kB04-05-08|12:14
QRcodeDecoder.opt60.50 kB04-05-08|12:14
QRcodeDecoder.plg3.74 kB04-05-08|12:14
QRcodeDecoder.rc5.64 kB04-05-08|12:12
QRcodeDecoderDlg.cpp5.97 kB03-05-08|13:05
QRcodeDecoderDlg.h1.76 kB03-05-08|12:41
QRcodeImage.cpp13.62 kB04-05-08|11:45
QRcodeImage.h1.39 kB04-05-08|11:44
ReadMe.txt3.62 kB16-03-08|11:33
QRcodeDecoder.ico1.05 kB04-05-08|12:12
QRcodeDecoder.rc2405.00 B16-03-08|11:33
resource.h921.00 B23-03-08|21:29
RsDecode.cpp6.83 kB23-04-08|23:25
RsDecode.h947.00 B03-05-08|08:48
SamplingGrid.cpp2.83 kB03-05-08|12:30
SamplingGrid.h1.85 kB03-05-08|11:19
StdAfx.cpp13.37 kB03-05-08|13:29
StdAfx.h2.16 kB03-05-08|09:27
res0.00 B03-05-08|13:31
QRcodeDecoder0.00 B04-05-08|12:14
...
Sponsored links

Axis.cpp (73.97 kB)

Need 3 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D