static const Standard_GUID kEXTERNAL_SHAPE_REF("9aa5dd14-6d34-4a8d-8786-05842fd7bbbd");
Model_Document::Model_Document(const int theID, const std::string theKind)
- : myID(theID), myKind(theKind), myIsActive(false), myIsSetCurrentFeature(false),
- myDoc(new TDocStd_Document("BinOcaf")) // binary OCAF format
+ : myID(theID),
+ myKind(theKind),
+ myDoc(new TDocStd_Document("BinOcaf")), // binary OCAF format
+ myIsActive(false),
+ myIsSetCurrentFeature(false)
{
#ifdef TINSPECTOR
CDF_Session::CurrentSession()->Directory()->Add(myDoc);
TDF_LabelList anAllNewFeatures;
// Perform the copying twice for correct references:
// 1. copy labels hierarchy and fill the relocation table
- TDF_Label aMain = myDoc->Main();
for (TDF_ChildIterator anIt(aTempDoc->Main()); anIt.More(); anIt.Next()) {
TDF_Label aCurrentLab = anIt.Value();
Handle(TDataStd_Comment) aFeatureID;
bool Model_Document::isModified()
{
// is modified if at least one operation was committed and not undone
- return myTransactions.size() != myTransactionSave || isOperation();
+ return (int)myTransactions.size() != myTransactionSave || isOperation();
}
bool Model_Document::canUndo()
}
if (aNumInHistory) {
std::map<std::string, std::list<TDF_Label> >::iterator aFind = myNamingNames.find(aName);
- if (aFind != myNamingNames.end() && aFind->second.size() > aNumInHistory) {
+ if (aFind != myNamingNames.end() && (int)aFind->second.size() > aNumInHistory) {
std::list<TDF_Label>::reverse_iterator aLibIt = aFind->second.rbegin();
for(; aNumInHistory != 0; aNumInHistory--)
aLibIt++;