Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #2155 Trim removes multi-rotation constraint, undo leads to wrong DOF
[modules/shaper.git]
/
src
/
Model
/
Model_ResultBody.cpp
diff --git
a/src/Model/Model_ResultBody.cpp
b/src/Model/Model_ResultBody.cpp
index 714d984e8e49e631abd123e79fa6304c49354d61..216aab493f212dc73adad31d62856091a34a980f 100644
(file)
--- a/
src/Model/Model_ResultBody.cpp
+++ b/
src/Model/Model_ResultBody.cpp
@@
-6,7
+6,7
@@
#include <Model_ResultBody.h>
#include <Model_BodyBuilder.h>
#include <Model_ResultBody.h>
#include <Model_BodyBuilder.h>
-#include <ModelAPI_
AttributeIntArray
.h>
+#include <ModelAPI_
ResultCompSolid
.h>
#include <ModelAPI_Tools.h>
#include <Config_PropManager.h>
#include <ModelAPI_Events.h>
#include <ModelAPI_Tools.h>
#include <Config_PropManager.h>
#include <ModelAPI_Events.h>
@@
-22,13
+22,6
@@
Model_ResultBody::Model_ResultBody()
myConnect = ConnectionNotComputed;
}
myConnect = ConnectionNotComputed;
}
-void Model_ResultBody::initAttributes()
-{
- // append the color attribute. It is empty, the attribute will be filled by a request
- DataPtr aData = data();
- aData->addAttribute(COLOR_ID(), ModelAPI_AttributeIntArray::typeId());
-}
-
void Model_ResultBody::colorConfigInfo(std::string& theSection, std::string& theName,
std::string& theDefault)
{
void Model_ResultBody::colorConfigInfo(std::string& theSection, std::string& theName,
std::string& theDefault)
{
@@
-71,7
+64,7
@@
bool Model_ResultBody::isConcealed()
if (aResult) { // hidden unit must be redisplayed (hidden)
ModelAPI_EventCreator::get()->sendDeleted(document(), this->groupName());
// redisplay for the viewer (it must be disappeared also)
if (aResult) { // hidden unit must be redisplayed (hidden)
ModelAPI_EventCreator::get()->sendDeleted(document(), this->groupName());
// redisplay for the viewer (it must be disappeared also)
- static Events_ID EVENT_DISP =
+ static Events_ID EVENT_DISP =
Events_Loop::loop()->eventByName(EVENT_OBJECT_TO_REDISPLAY);
ModelAPI_EventCreator::get()->sendUpdated(data()->owner(), EVENT_DISP);
} else { // was not concealed become concealed => delete event
Events_Loop::loop()->eventByName(EVENT_OBJECT_TO_REDISPLAY);
ModelAPI_EventCreator::get()->sendUpdated(data()->owner(), EVENT_DISP);
} else { // was not concealed become concealed => delete event