forked from bartvdbraak/blender
style cleanup
This commit is contained in:
parent
25c96bc9f3
commit
bc69b3a8df
@ -70,8 +70,7 @@ public:
|
||||
/**
|
||||
* Destructor.
|
||||
*/
|
||||
virtual ~GHOST_Rect()
|
||||
{};
|
||||
virtual ~GHOST_Rect() {}
|
||||
|
||||
/**
|
||||
* Access to rectangle width.
|
||||
|
@ -107,7 +107,7 @@ class GHOST_NDOFManager
|
||||
public:
|
||||
GHOST_NDOFManager(GHOST_System&);
|
||||
|
||||
virtual ~GHOST_NDOFManager() {};
|
||||
virtual ~GHOST_NDOFManager() {}
|
||||
|
||||
// whether multi-axis functionality is available (via the OS or driver)
|
||||
// does not imply that a device is plugged in or being used
|
||||
|
@ -40,13 +40,13 @@ protected:
|
||||
* Constructor.
|
||||
* Protected default constructor to force use of static createSystem member.
|
||||
*/
|
||||
GHOST_SystemPaths() {};
|
||||
GHOST_SystemPaths() {}
|
||||
|
||||
/**
|
||||
* Destructor.
|
||||
* Protected default constructor to force use of static dispose member.
|
||||
*/
|
||||
virtual ~GHOST_SystemPaths() {};
|
||||
virtual ~GHOST_SystemPaths() {}
|
||||
|
||||
public:
|
||||
|
||||
|
@ -192,14 +192,14 @@ public:
|
||||
*/
|
||||
virtual GHOST_TSuccess setProgressBar(float progress) {
|
||||
return GHOST_kFailure;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Hides the progress bar in the icon
|
||||
*/
|
||||
virtual GHOST_TSuccess endProgressBar() {
|
||||
return GHOST_kFailure;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Tells if the ongoing drag'n'drop object can be accepted upon mouse drop
|
||||
@ -284,7 +284,7 @@ protected:
|
||||
*/
|
||||
virtual GHOST_TSuccess setWindowCursorGrab(GHOST_TGrabCursorMode mode) {
|
||||
return GHOST_kSuccess;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the cursor shape on the window using
|
||||
|
@ -53,12 +53,12 @@ class IK_QJacobianSolver
|
||||
{
|
||||
public:
|
||||
IK_QJacobianSolver();
|
||||
~IK_QJacobianSolver() {};
|
||||
~IK_QJacobianSolver() {}
|
||||
|
||||
// setup pole vector constraint
|
||||
void SetPoleVectorConstraint(IK_QSegment *tip, MT_Vector3& goal,
|
||||
MT_Vector3& polegoal, float poleangle, bool getangle);
|
||||
float GetPoleAngle() { return m_poleangle; };
|
||||
float GetPoleAngle() { return m_poleangle; }
|
||||
|
||||
// call setup once before solving, if it fails don't solve
|
||||
bool Setup(IK_QSegment *root, std::list<IK_QTask*>& tasks);
|
||||
|
@ -158,10 +158,10 @@ public:
|
||||
virtual void UpdateAngleApply()=0;
|
||||
|
||||
// set joint limits
|
||||
virtual void SetLimit(int, MT_Scalar, MT_Scalar) {};
|
||||
virtual void SetLimit(int, MT_Scalar, MT_Scalar) {}
|
||||
|
||||
// set joint weights (per axis)
|
||||
virtual void SetWeight(int, MT_Scalar) {};
|
||||
virtual void SetWeight(int, MT_Scalar) {}
|
||||
|
||||
virtual void SetBasis(const MT_Matrix3x3& basis) { m_basis = basis; }
|
||||
|
||||
|
@ -49,7 +49,7 @@ public:
|
||||
bool active,
|
||||
const IK_QSegment *segment
|
||||
);
|
||||
virtual ~IK_QTask() {};
|
||||
virtual ~IK_QTask() {}
|
||||
|
||||
int Id() const
|
||||
{ return m_size; }
|
||||
@ -119,7 +119,7 @@ public:
|
||||
const MT_Matrix3x3& goal
|
||||
);
|
||||
|
||||
MT_Scalar Distance() const { return m_distance; };
|
||||
MT_Scalar Distance() const { return m_distance; }
|
||||
void ComputeJacobian(IK_QJacobian& jacobian);
|
||||
|
||||
private:
|
||||
|
@ -43,7 +43,7 @@ using namespace std;
|
||||
class IK_QSolver {
|
||||
public:
|
||||
IK_QSolver() : root(NULL) {
|
||||
};
|
||||
}
|
||||
|
||||
IK_QJacobianSolver solver;
|
||||
IK_QSegment *root;
|
||||
|
@ -103,7 +103,7 @@ public:
|
||||
const MT_Quaternion &q
|
||||
) {
|
||||
setRotation(q);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Accessors
|
||||
@ -118,7 +118,7 @@ public:
|
||||
vector(
|
||||
) const {
|
||||
return m_v;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the exponential map from a quaternion
|
||||
|
@ -182,7 +182,7 @@ class Matrix
|
||||
|
||||
// constructors
|
||||
|
||||
Matrix() : m_(0), n_(0), mn_(0), v_(0), row_(0), vm1_(0), rowm1_(0) {};
|
||||
Matrix() : m_(0), n_(0), mn_(0), v_(0), row_(0), vm1_(0), rowm1_(0) {}
|
||||
|
||||
Matrix(const Matrix<T> &A)
|
||||
{
|
||||
|
@ -164,7 +164,7 @@ class Vector
|
||||
|
||||
// constructors
|
||||
|
||||
Vector() : v_(0), vm1_(0), n_(0) {};
|
||||
Vector() : v_(0), vm1_(0), n_(0) {}
|
||||
|
||||
Vector(const Vector<T> &A) : v_(0), vm1_(0), n_(0)
|
||||
{
|
||||
|
@ -64,7 +64,7 @@ public:
|
||||
/**
|
||||
* @brief determine the actual data type and channel info.
|
||||
*/
|
||||
void relinkConnections(OutputSocket *relinkToSocket) { this->relinkConnections(relinkToSocket, false); };
|
||||
void relinkConnections(OutputSocket *relinkToSocket) { this->relinkConnections(relinkToSocket, false); }
|
||||
void relinkConnections(OutputSocket *relinkToSocket, bool single);
|
||||
const int getNumberOfConnections() { return this->m_connections.size(); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user