// ----------------------------------------------------------------------------------
Image3DDequeUR::Image3DDequeUR( )
{
+ const void * address = static_cast<const void*>(this);
+ std::stringstream ss;
+ ss << address;
+ m_PrivateID = ss.str();
+
#ifdef _WIN32
this->m_GlobalPath = std::getenv("TEMP");
#endif
imageInfo->SetImageName( this->GetImageName( this->m_ImgURDeque.size( ) ) );
imageInfo->SetImages( imgUndo, imgRedo );
imageInfo->SetImageMManager( imMManager );
+
//Adding to deque
this->m_ImgURDeque.push_back( imageInfo );
this->m_CurrentURPos = this->m_ImgURDeque.size( ) - 1;
//Giving a name to an image using the date and time
if( this->m_IDImages.empty( ) )
{
- time_t rawtime;
- struct tm * timeinfo;
- char buffer[ 80 ];
+ time_t rawtime;
+ struct tm *timeinfo;
+ char buffer[ 80 ];
time( &rawtime );
timeinfo = localtime( &rawtime );
strftime( buffer, 80, "%H%M%S_%a_%d_%b_%y_", timeinfo );
}
std::stringstream ss; //create a stringstream
ss << pos; //add number to the stream
- StringType imageName = this->m_IDImages + ss.str( );
+ StringType imageName = this->m_IDImages + ss.str( )+ "_"+m_PrivateID;
return ( imageName );
}