28 m_LengthOfRandomPart(lengthOfRandomPart),
29 m_RandomGenerator(
itk::Statistics::MersenneTwisterRandomVariateGenerator::
New())
31 if (lengthOfRandomPart < 5)
33 MITK_ERROR <<
"To few digits requested (" << lengthOfRandomPart <<
" digits)";
34 throw std::invalid_argument(
"To few digits requested");
37 m_RandomGenerator->Initialize();
44 time_t tt = time(
nullptr);
49 s << t->tm_year + 1900;
71 std::ostringstream rs;
72 rs << (
long int)(pow(10.0,
double(m_LengthOfRandomPart)) / double(RAND_MAX) *
73 double(m_RandomGenerator->GetUniformVariate(0, RAND_MAX)));
75 for (
size_t i = rs.str().length(); i < m_LengthOfRandomPart; ++i)
UIDGenerator(const char *prefix="UID_", unsigned int lengthOfRandomPart=8)
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.