本文整理汇总了C++中STANDARD_CONSTRUCTOR函数的典型用法代码示例。如果您正苦于以下问题:C++ STANDARD_CONSTRUCTOR函数的具体用法?C++ STANDARD_CONSTRUCTOR怎么用?C++ STANDARD_CONSTRUCTOR使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了STANDARD_CONSTRUCTOR函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: STANDARD_CONSTRUCTOR
//------------------------------------------------------------------------------
// Class support functions
//------------------------------------------------------------------------------
TimeReadout::TimeReadout()
{
STANDARD_CONSTRUCTOR()
lcStrcpy(format,FORMAT_LENGTH,"%02d:%02d:%04.1f");
tmode = hhmmss;
}
示例2: Thread
//------------------------------------------------------------------------------
// Constructor
//------------------------------------------------------------------------------
ThreadSyncTask::ThreadSyncTask(Component* const p, const LCreal pri) : Thread(p, pri)
{
STANDARD_CONSTRUCTOR()
startSig = nullptr;
completedSig = nullptr;
}
示例3: STANDARD_CONSTRUCTOR
// Constructor
TabLogger::LogActiveTrack::LogActiveTrack(int t, const TrackManager* const mgr, const Track* const trk)
{
STANDARD_CONSTRUCTOR()
thePlayer = 0;
theEmission = 0;
theType = t;
theManager = mgr;
theTrack = trk;
if (theManager != 0) {
thePlayer = dynamic_cast<const Player*>( theManager->findContainerByType(typeid(Player)) );
}
if (theTrack != 0) {
const RfTrack* const rfTrk = dynamic_cast<const RfTrack*>(trk);
if (rfTrk != 0) {
theEmission = rfTrk->getLastEmission();
}
}
pos.set(0,0,0);
vel.set(0,0,0);
angles.set(0,0,0);
tgtPos.set(0,0,0);
tgtVel.set(0,0,0);
tgtAngles.set(0,0,0);
sn = 0;
}
示例4: STANDARD_CONSTRUCTOR
// Constructor
Arc::Arc()
{
STANDARD_CONSTRUCTOR()
startAngle = 0.0;
arcLength = 90.0;
setIsConnected(false);
}
示例5: STANDARD_CONSTRUCTOR
MonitorMetrics::MonitorMetrics()
{
// default configuration based on data from an unknown CRT monitor
const int npoints = 21;
LCreal luminanceLevels[npoints] = { 0.0f, 0.05f, 0.1f, 0.15f, 0.2f, 0.25f, 0.3f,
0.35f, 0.4f, 0.45f, 0.5f, 0.55f, 0.6f, 0.65f,
0.7f, 0.75f, 0.8f, 0.85f, 0.9f, 0.95f, 1.0f };
LCreal luminanceRed[npoints] = { 0.0f, 0.0f, 1.613f, 3.3f, 5.487f, 7.657f, 10.19f,
13.02f, 16.49f, 19.36f, 22.57f, 26.21f, 30.32f, 33.67f,
37.4f, 41.65f, 46.25f, 49.96f, 54.33f, 59.19f, 63.43f };
LCreal luminanceGreen[npoints] = { 0.0f, 0.0f, 3.14f, 7.482f, 13.28f, 20.13f, 27.91f,
36.77f, 47.04f, 55.47f, 66.16f, 77.91f, 90.12f, 100.9f,
113.4f, 127.3f, 142.2f, 152.7f, 165.8f, 178.7f, 191.0f };
LCreal luminanceBlue[npoints] = { 0.0f, 0.7603f, 2.025f, 3.653f, 5.554f, 7.427f, 9.427f,
11.71f, 14.25f, 16.47f, 18.97f, 21.6f, 24.15f, 26.67f,
29.51f, 32.16f, 35.22f, 37.61f, 40.53f, 43.4f, 45.99f };
STANDARD_CONSTRUCTOR()
redLuminance = new Table1(luminanceRed, npoints, luminanceLevels, npoints);
greenLuminance = new Table1(luminanceGreen, npoints, luminanceLevels, npoints);
blueLuminance = new Table1(luminanceBlue, npoints, luminanceLevels, npoints);
phosphorCoordinates.set( 0.628f, 0.346f, 0.026f, 0.0f,
0.347f, 0.556f, 0.097f, 0.0f,
0.147f, 0.065f, 0.788f, 0.0f,
0.0f, 0.0f, 0.0f, 1.0f );
refwhiteRGB.set( 0.211138f, 0.635777f, 0.153086f);
refwhiteCIE.set( 0.276f, 0.239f, 0.485f );
computeMatrix();
}
示例6: STANDARD_CONSTRUCTOR
//------------------------------------------------------------------------------
// Constructor(s)
//------------------------------------------------------------------------------
Gun::Gun()
{
STANDARD_CONSTRUCTOR()
bullet = nullptr;
armed = false;
fire = false;
unlimited = false;
burstFrameTimer = 0;
burstFrameTime = 1.0f/LCreal(DEFAULT_BURST_RATE);
rcount = 0.0;
shortBurstTimer = 0.0;
shortBurstTime = 0.5;
rounds = 0;
initRounds = DEFAULT_NUM_ROUNDS;
rpm = DEFAULT_ROUNDS_PER_MINUTE;
setPosition(0.0, 0.0, 0.0);
setAngles(0.0, 0.0, 0.0);
// Note: rotation matrix (mm) was initialized by setAngles()
}
示例7: STANDARD_CONSTRUCTOR
LinearVelocity::LinearVelocity(const Distance* const newDistance, const Time* const newTime)
{
STANDARD_CONSTRUCTOR()
distance = 1;
time = 1;
//Set checks to false
bool okDistance = false;
bool okTime = false;
//Check and convert the distance to meters
if (newDistance != nullptr)
{
LCreal finalDistance = Meters::convertStatic( *newDistance );
okDistance = setMeters(finalDistance);
}
//Check and convert the time to seconds
if (newTime != nullptr)
{
LCreal finaltime = Seconds::convertStatic( *newTime );
okTime = setSeconds(finaltime);
}
//Check that both were set correctly - if not give error
if ( !okTime || !okDistance )
{
//Give error if something was not set correctly:
std::cerr << "Distance or Time not set correctly - new LinearVelocity Object bad." << std::endl;
}
}
示例8: STANDARD_CONSTRUCTOR
//------------------------------------------------------------------------------
// Constructor(s)
//------------------------------------------------------------------------------
IrBox::IrBox()
{
STANDARD_CONSTRUCTOR()
x = 10.0;
y = 10.0;
z = 10.0;
}
示例9: STANDARD_CONSTRUCTOR
// Constructor
TabLogger::LogPlayerData::LogPlayerData(int t, const Player* const p)
{
STANDARD_CONSTRUCTOR()
initData();
thePlayer = p;
theType = t;
}
示例10: STANDARD_CONSTRUCTOR
//------------------------------------------------------------------------------
// Constructor(s)
//------------------------------------------------------------------------------
SigAzEl::SigAzEl()
{
STANDARD_CONSTRUCTOR()
tbl = 0;
swapOrderFlg = false;
degFlg = false;
dbFlg = false;
}
示例11: STANDARD_CONSTRUCTOR
Timer::Timer(const Type direction, const double rtime)
{
STANDARD_CONSTRUCTOR()
initData();
timerValue = rtime;
ctime = rtime;
dir = direction;
}
示例12: STANDARD_CONSTRUCTOR
MyObj::MyObj()
{
STANDARD_CONSTRUCTOR()
colorTable = nullptr;
textColor = nullptr;
backColor = nullptr;
vector = nullptr;
message = nullptr;
visible = false;
}