if ( theIsParametric )
{
QTextStream anOutStream( &aTmpFile );
-
+
anOutStream << "0 182.15 \n";
anOutStream << "4 181.95 \n";
anOutStream << "10.18 181.63 \n";
HYDROData_Iterator aDocIter( aDoc, KIND_PROFILE );
for ( ; aDocIter.More(); aDocIter.Next() )
{
- Handle(HYDROData_Profile) aProfile =
+ Handle(HYDROData_Profile) aProfile =
Handle(HYDROData_Profile)::DownCast( aDocIter.Current() );
if ( aProfile.IsNull() )
continue;
-
+
CPPUNIT_ASSERT( aProfile->IsValid() == false );
CPPUNIT_ASSERT( aProfile->NbPoints() == 5 );
-
+
aProfileCount++;
}
-
CPPUNIT_ASSERT( aProfileCount == 2 );
- Handle(HYDROData_Profile) aGeorefProfile =
+ Handle(HYDROData_Profile) aGeorefProfile =
Handle(HYDROData_Profile)::DownCast( aDoc->CreateObject( KIND_PROFILE ) );
aFileName = TCollection_AsciiString( aGeorefFileName.toStdString().c_str() );
void test_HYDROData_Profile::testCopy()
{
Handle(HYDROData_Document) aDoc = HYDROData_Document::Document();
-
- Handle(HYDROData_Profile) aProfile1 =
+
+ Handle(HYDROData_Profile) aProfile1 =
Handle(HYDROData_Profile)::DownCast( aDoc->CreateObject( KIND_PROFILE ) );
QString aFileName = TMP_DIR + QDir::separator() + "georef.pa";
bool anIsFileCreated = createTestFile( aFileName, false );
-
+
if ( anIsFileCreated )
{
bool notEmpty = false;
CPPUNIT_ASSERT( aProfile1->NbPoints() == 5 );
}
- Handle(HYDROData_Profile) aProfile2 =
+ Handle(HYDROData_Profile) aProfile2 =
Handle(HYDROData_Profile)::DownCast( aDoc->CreateObject( KIND_PROFILE ) );
aProfile1->CopyTo( aProfile2, false );