📄 page.cpp
字号:
"%s: [%s]%s is a required entry!",
m_notationFile->GetFileName(),
m_name,
entryname
));
return false;
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
Page::SetEntry(
const char *entryname,
const Vector3D &value
)
{
Check_Object(this);
Check_Pointer(entryname);
Note *note = FindNote(entryname);
if (!note)
note = AddNote(entryname);
Check_Object(note);
note->SetEntry(value);
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
Page::AppendEntry(
const char *entryname,
const Vector3D &value
)
{
Check_Object(this);
Check_Pointer(entryname);
Note *note = AddNote(entryname);
Check_Object(note);
note->SetEntry(value);
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
bool
Page::GetEntry(
const char *entryname,
YawPitchRoll *contents,
bool required
)
{
Check_Object(this);
Check_Pointer(entryname);
Check_Pointer(contents);
Note *note = FindNote(entryname);
if (note)
{
Check_Object(note);
note->GetEntry(contents);
return true;
}
if (required)
STOP((
"%s: [%s]%s is a required entry!",
m_notationFile->GetFileName(),
m_name,
entryname
));
return false;
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
Page::SetEntry(
const char *entryname,
const YawPitchRoll &value
)
{
Check_Object(this);
Check_Pointer(entryname);
Note *note = FindNote(entryname);
if (!note)
note = AddNote(entryname);
Check_Object(note);
note->SetEntry(value);
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
Page::AppendEntry(
const char *entryname,
const YawPitchRoll &value
)
{
Check_Object(this);
Check_Pointer(entryname);
Note *note = AddNote(entryname);
Check_Object(note);
note->SetEntry(value);
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
bool
Page::GetEntry(
const char *entryname,
UnitQuaternion *contents,
bool required
)
{
Check_Object(this);
Check_Pointer(entryname);
Check_Pointer(contents);
Note *note = FindNote(entryname);
if (note)
{
Check_Object(note);
note->GetEntry(contents);
return true;
}
if (required)
STOP((
"%s: [%s]%s is a required entry!",
m_notationFile->GetFileName(),
m_name,
entryname
));
return false;
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
Page::SetEntry(
const char *entryname,
const UnitQuaternion &value
)
{
Check_Object(this);
Check_Pointer(entryname);
Note *note = FindNote(entryname);
if (!note)
note = AddNote(entryname);
Check_Object(note);
note->SetEntry(value);
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
Page::AppendEntry(
const char *entryname,
const UnitQuaternion &value
)
{
Check_Object(this);
Check_Pointer(entryname);
Note *note = AddNote(entryname);
Check_Object(note);
note->SetEntry(value);
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
bool
Page::GetEntry(
const char *entryname,
Motion3D *contents,
bool required
)
{
Check_Object(this);
Check_Pointer(entryname);
Check_Pointer(contents);
Note *note = FindNote(entryname);
if (note)
{
Check_Object(note);
note->GetEntry(contents);
return true;
}
if (required)
STOP((
"%s: [%s]%s is a required entry!",
m_notationFile->GetFileName(),
m_name,
entryname
));
return false;
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
Page::SetEntry(
const char *entryname,
const Motion3D &value
)
{
Check_Object(this);
Check_Pointer(entryname);
Note *note = FindNote(entryname);
if (!note)
note = AddNote(entryname);
Check_Object(note);
note->SetEntry(value);
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
Page::AppendEntry(
const char *entryname,
const Motion3D &value
)
{
Check_Object(this);
Check_Pointer(entryname);
Note *note = AddNote(entryname);
Check_Object(note);
note->SetEntry(value);
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
bool
Page::GetEntry(
const char *entryname,
RGBColor *contents,
bool required
)
{
Check_Object(this);
Check_Pointer(entryname);
Check_Pointer(contents);
Note *note = FindNote(entryname);
if (note)
{
Check_Object(note);
note->GetEntry(contents);
return true;
}
if (required)
STOP((
"%s: [%s]%s is a required entry!",
m_notationFile->GetFileName(),
m_name,
entryname
));
return false;
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
Page::SetEntry(
const char *entryname,
const RGBColor &value
)
{
Check_Object(this);
Check_Pointer(entryname);
Note *note = FindNote(entryname);
if (!note)
note = AddNote(entryname);
Check_Object(note);
note->SetEntry(value);
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
Page::AppendEntry(
const char *entryname,
const RGBColor &value
)
{
Check_Object(this);
Check_Pointer(entryname);
Note *note = AddNote(entryname);
Check_Object(note);
note->SetEntry(value);
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
bool
Page::GetEntry(
const char *entryname,
RGBAColor *contents,
bool required
)
{
Check_Object(this);
Check_Pointer(entryname);
Check_Pointer(contents);
Note *note = FindNote(entryname);
if (note)
{
Check_Object(note);
note->GetEntry(contents);
return true;
}
if (required)
STOP((
"%s: [%s]%s is a required entry!",
m_notationFile->GetFileName(),
m_name,
entryname
));
return false;
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
Page::SetEntry(
const char *entryname,
const RGBAColor &value
)
{
Check_Object(this);
Check_Pointer(entryname);
Note *note = FindNote(entryname);
if (!note)
note = AddNote(entryname);
Check_Object(note);
note->SetEntry(value);
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
Page::AppendEntry(
const char *entryname,
const RGBAColor &value
)
{
Check_Object(this);
Check_Pointer(entryname);
Note *note = AddNote(entryname);
Check_Object(note);
note->SetEntry(value);
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
bool
Page::GetEntry(
const char *entryname,
NotationFile *contents,
bool required
)
{
Check_Object(this);
Check_Pointer(entryname);
Check_Pointer(contents);
Note *note = FindNote(entryname);
if (note)
{
Check_Object(note);
note->GetEntry(contents);
return true;
}
if (required)
STOP((
"%s: [%s]%s is a required entry!",
m_notationFile->GetFileName(),
(char*)m_name,
entryname
));
return false;
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
Page::SetEntry(
const char *entryname,
NotationFile *value
)
{
Check_Object(this);
Check_Pointer(entryname);
Note *note = FindNote(entryname);
if (!note)
note = AddNote(entryname);
Check_Object(note);
note->SetEntry(value);
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
Page::AppendEntry(
const char *entryname,
NotationFile *value
)
{
Check_Object(this);
Check_Pointer(entryname);
Note *note = AddNote(entryname);
Check_Object(note);
note->SetEntry(value);
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
Page::TestInstance() const
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -