Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94114157
describable.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Dec 4, 00:51
Size
791 B
Mime Type
text/x-c
Expires
Fri, Dec 6, 00:51 (1 d, 10 h)
Engine
blob
Format
Raw Data
Handle
22738496
Attached To
rSYMKIT symkit
describable.cpp
View Options
#include "specs/describable.h"
#include "descriptor.h"
#include <QString>
#include "skerror.h"
using
namespace
symkit
;
Describable
::
Describable
(
Descriptor
*
desc
)
:
descriptor
(
desc
)
{
}
Describable
::~
Describable
()
{
release
();
}
void
Describable
::
bind
(
Descriptor
*
desc
)
{
if
(
!
desc
)
throw
SKError
(
ERR_NULL_POINTER
,
"bindDescriptor"
,
"symgraph.Descriptable"
,
"Cannot bind a null pointer as descriptor"
);
descriptor
=
desc
;
}
void
Describable
::
release
()
{
descriptor
=
0
;
}
bool
Describable
::
isBound
()
const
{
return
descriptor
!=
0
;
}
Descriptor
*
Describable
::
getDescriptor
()
{
return
descriptor
;
}
void
Describable
::
updateDescriptor
(
float
dt
)
{
descriptor
->
update
(
dt
);
}
Event Timeline
Log In to Comment