void
TrimmedCurve::Print(int level)
{
    TAB(level);
    std::cout << CLASSNAME << ":" << name << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level);
    std::cout << "Attributes:" << std::endl;
    basis_curve->Print(level + 1);
    TAB(level);
    std::cout << "trim_1:" << std::endl;
    LIST_OF_TRIMMING_SELECT::iterator i;
    for (i = trim_1.begin(); i != trim_1.end(); i++) {
	(*i)->Print(level + 1);
    }

    TAB(level);
    std::cout << "trim_2:" << std::endl;
    for (i = trim_2.begin(); i != trim_2.end(); i++) {
	(*i)->Print(level + 1);
    }
    TAB(level);
    std::cout << "sense_agreement:" << step->getBooleanString(sense_agreement) << std::endl;
    TAB(level);
    std::cout << "master_representation:" << Trimming_preference_string[master_representation] << std::endl;
}
void
RectangularCompositeSurface::Print(int level)
{
    TAB(level);
    std::cout << CLASSNAME << ":" << name << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level);
    std::cout << "Attributes:" << std::endl;
    TAB(level + 1);
    std::cout << "segments:" << std::endl;
    LIST_OF_LIST_OF_PATCHES::iterator i;
    int cnt = 0;
    for (i = segments->begin(); i != segments->end(); ++i) {
	LIST_OF_PATCHES::iterator j;
	LIST_OF_PATCHES *p = *i;
	TAB(level + 1);
	std::cout << "surface_patch " << cnt++ << ":" << std::endl;
	for (j = p->begin(); j != p->end(); ++j) {
	    (*j)->Print(level + 1);
	}
    }

    TAB(level);
    std::cout << "Inherited Attributes:" << std::endl;
    BoundedSurface::Print(level + 1);
}
void
CharacterizedProductDefinition::Print(int level) {
    TAB(level); std::cout << CLASSNAME << ":" << entityname << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level); std::cout << "Attributes:" << std::endl;
    //todo: expand out to print actual select type
    TAB(level+1); std::cout << "definition: ";
    if (type == CharacterizedProductDefinition::PRODUCT_DEFINITION) {
	std::cout << "PRODUCT_DEFINITION" << std::endl;
	ProductDefinition *aPD = dynamic_cast<ProductDefinition *>(definition);
	if (aPD) {
	    aPD->Print(level+2);
	} else {
	    TAB(level+2); std::cout << "PRODUCT_DEFINITION == NULL" << std::endl;
	}
    } else if (type == CharacterizedProductDefinition::PRODUCT_DEFINITION_RELATIONSHIP) {
	std::cout << "PRODUCT_DEFINITION_RELATIONSHIP" << std::endl;
	ProductDefinitionRelationship *aPDR = dynamic_cast<ProductDefinitionRelationship *>(definition);
	if (aPDR) {
	    aPDR->Print(level+2);
	} else {
	    TAB(level+2); std::cout << "PRODUCT_DEFINITION_RELATIONSHIP == NULL" << std::endl;
	}
    } else {
	std::cout << "UNKNOWN" << std::endl;
    }
}
void
RepresentedDefinition::Print(int level) {
    TAB(level); std::cout << CLASSNAME << ":" << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level); std::cout << "Attributes:" << std::endl;
    if (type == GENERAL_PROPERTY) {
	TAB(level+1); std::cout << "Type:" << represented_definition_type_names[type] << " Value:" << std::endl;
	//entity->Print(level+1);
    } else if (type == PROPERTY_DEFINITION) {
	TAB(level+1); std::cout << "Type:" << represented_definition_type_names[type] << " Value:" << std::endl;
	//entity->Print(level+1);
    } else if (type == PROPERTY_DEFINITION_RELATIONSHIP) {
	TAB(level+1); std::cout << "Type:" << represented_definition_type_names[type] << " Value:" << std::endl;
	//entity->Print(level+1);
    } else if (type == SHAPE_ASPECT) {
	TAB(level+1); std::cout << "Type:" << represented_definition_type_names[type] << " Value:" << std::endl;
	//entity->Print(level+1);
    } else if (type == SHAPE_ASPECT_RELATIONSHIP) {
	TAB(level+1); std::cout << "Type:" << represented_definition_type_names[type] << " Value:" << std::endl;
	//entity->Print(level+1);
    } else {
	TAB(level+1); std::cout << "Type:" << "UNKNOWN" << " Value:" << std::endl;
    }
}
Beispiel #5
0
void
Vertex::Print(int level)
{
    TAB(level);
    std::cout << CLASSNAME << ":" << name << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;
}
void
BSplineSurfaceWithKnots::Print(int level) {
    TAB(level); std::cout << CLASSNAME << ":" << name << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level); std::cout << "Attributes:" << std::endl;
    TAB(level+1); std::cout << "u_multiplicities:";
    LIST_OF_INTEGERS::iterator ii;
    for(ii=u_multiplicities.begin();ii!=u_multiplicities.end();ii++) {
	std::cout << " " << (*ii);
    }
    std::cout << std::endl;
    TAB(level+1); std::cout << "v_multiplicities:";
    for(ii=v_multiplicities.begin();ii!=v_multiplicities.end();ii++) {
	std::cout << " " << (*ii);
    }
    std::cout << std::endl;

    TAB(level+1); std::cout << "u_knots:";
    LIST_OF_REALS::iterator ir;
    for(ir=u_knots.begin();ir!=u_knots.end();ir++) {
	std::cout << " " << (*ir);
    }
    std::cout << std::endl;
    TAB(level+1); std::cout << "v_knots:";
    for(ir=v_knots.begin();ir!=v_knots.end();ir++) {
	std::cout << " " << (*ir);
    }
    std::cout << std::endl;

    TAB(level+1); std::cout << "knot_spec:" << Knot_type_string[knot_spec] << std::endl;

    TAB(level); std::cout << "Inherited Attributes:" << std::endl;
    BSplineSurface::Print(level+1);
}
void
CartesianTransformationOperator::Print(int level)
{
    TAB(level);
    std::cout << CLASSNAME << ":" << GeometricRepresentationItem::name << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level);
    std::cout << "Attributes:" << std::endl;
    if (axis1) {
	TAB(level + 1);
	std::cout << "axis1:" << std::endl;
	axis1->Print(level + 1);
    }
    if (axis2) {
	TAB(level + 1);
	std::cout << "axis2:" << std::endl;
	axis2->Print(level + 1);
    }
    TAB(level + 1);
    std::cout << "local_origin:" << std::endl;
    local_origin->Print(level + 1);

    TAB(level + 1);
    std::cout << "scale: " << scale << std::endl;

    TAB(level);
    std::cout << "Inherited Attributes:" << std::endl;
    GeometricRepresentationItem::Print(level + 1);
}
Beispiel #8
0
void
CurveBoundedSurface::Print(int level)
{
    TAB(level);
    std::cout << CLASSNAME << ":" << name << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level);
    std::cout << "Attributes:" << std::endl;
    basis_surface->Print(level + 1);

    TAB(level + 1);
    std::cout << "boundaries:" << std::endl;
    LIST_OF_BOUNDARIES::iterator i;
    for (i = boundaries.begin(); i != boundaries.end(); ++i) {
	(*i)->Print(level + 1);
    }

    TAB(level + 1);
    std::cout << "implicit_outer:" << step->getBooleanString((Boolean)implicit_outer) << std::endl;

    TAB(level);
    std::cout << "Inherited Attributes:" << std::endl;
    BoundedSurface::Print(level + 1);
}
Beispiel #9
0
void
ClosedShell::Print(int level) {
    TAB(level); std::cout << CLASSNAME << ":" << name << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level); std::cout << "Inherited Attributes:" << std::endl;
    ConnectedFaceSet::Print(level+1);
}
void
QuasiUniformSurface::Print(int level) {
    TAB(level); std::cout << CLASSNAME << ":" << name << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level); std::cout << "Inherited:" << std::endl;
    BSplineSurface::Print(level+1);
}
Beispiel #11
0
void
BoundedSurface::Print(int level) {
    TAB(level); std::cout << CLASSNAME << ":" << name << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level); std::cout << "Inherited Attributes:" << std::endl;
    Surface::Print(level+1);
}
Beispiel #12
0
void
TimeUnit::Print(int level) {
    TAB(level); std::cout << CLASSNAME << ":" << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level); std::cout << "Inherited Attributes:" << std::endl;
    NamedUnit::Print(level+1);

}
Beispiel #13
0
void
SolidModel::Print(int level)
{
    TAB(level);
    std::cout << CLASSNAME << ":" << name << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    GeometricRepresentationItem::Print(level);
}
void
PlaneAngleMeasureWithUnit::Print(int level) {
    TAB(level); std::cout << CLASSNAME << ":" << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;


    TAB(level); std::cout << "Inherited Attributes:" << std::endl;
    MeasureWithUnit::Print(level+1);
}
void
FunctionallyDefinedTransformation::Print(int level) {
    TAB(level); std::cout << CLASSNAME << ":" << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level); std::cout << "Attributes:" << std::endl;
    TAB(level+1); std::cout << "name:" << name << std::endl;
	TAB(level+1); std::cout << "description:" << description << std::endl;
}
Beispiel #16
0
void
ShapeRepresentation::Print(int level)
{
    TAB(level);
    std::cout << CLASSNAME << ":" << name << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    Representation::Print(level);
}
Beispiel #17
0
void
ElementarySurface::Print(int level) {
    TAB(level); std::cout << CLASSNAME << ":" << name << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    if (position != NULL) {
	position->Print(level+1);
    }
}
void
AdvancedBrepShapeRepresentation::Print(int level) {
    TAB(level);
    std::cout << CLASSNAME << ":" << name << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level);
    std::cout << "Inherited Attributes:" << std::endl;
    ShapeRepresentation::Print(level);
}
void
ThermodynamicTemperatureSiUnit::Print(int level) {
    TAB(level); std::cout << CLASSNAME << ":" << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level); std::cout << "Inherited Attributes:" << std::endl;
    ThermodynamicTemperatureUnit::Print(level+1);
    SiUnit::Print(level+1);

}
void
ElectricCurrentContextDependentUnit::Print(int level) {
    TAB(level); std::cout << CLASSNAME << ":" << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level); std::cout << "Inherited Attributes:" << std::endl;
    ElectricCurrentUnit::Print(level+1);
    ContextDependentUnit::Print(level+1);

}
Beispiel #21
0
void
Vector::Print(int level) {
    TAB(level); std::cout << CLASSNAME << ":" << name << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level); std::cout << "Attributes:" << std::endl;
    TAB(level+1);std::cout << "orientation:" << std::endl;
    orientation->Print(level+1);
    TAB(level+1);std::cout << "magnitude:" << magnitude << std::endl;
}
void
SolidAngleContextDependentUnit::Print(int level) {
    TAB(level); std::cout << CLASSNAME << ":" << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level); std::cout << "Inherited Attributes:" << std::endl;
    SolidAngleUnit::Print(level+1);
    ContextDependentUnit::Print(level+1);

}
void
LuminousIntensityContextDependentUnit::Print(int level) {
    TAB(level); std::cout << CLASSNAME << ":" << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level); std::cout << "Inherited Attributes:" << std::endl;
    LuminousIntensityUnit::Print(level+1);
    ContextDependentUnit::Print(level+1);

}
void
MassConversionBasedUnit::Print(int level) {
    TAB(level); std::cout << CLASSNAME << ":" << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level); std::cout << "Inherited Attributes:" << std::endl;
    MassUnit::Print(level+1);
    ConversionBasedUnit::Print(level+1);

}
void
CartesianTransformationOperator2D::Print(int level)
{
    TAB(level);
    std::cout << CLASSNAME << ":" << GeometricRepresentationItem::name << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level);
    std::cout << "Inherited Attributes:" << std::endl;
    CartesianTransformationOperator::Print(level + 1);
}
Beispiel #26
0
void
OrientedEdge::Print(int level) {
    TAB(level); std::cout << CLASSNAME << ":" << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level); std::cout << "Attributes:" << std::endl;
    TAB(level+1); std::cout << "edge_element:" << std::endl;
    edge_element->Print(level+1);
    TAB(level+1); std::cout << "orientation:" << step->getBooleanString((Boolean)orientation) << std::endl;

}
void
SweptSurface::Print(int level)
{
    TAB(level);
    std::cout << CLASSNAME << ":" << name << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    if (swept_curve != NULL) {
	swept_curve->Print(level + 1);
    }
}
Beispiel #28
0
void ApplicationContext::Print(int level)
{
    TAB(level);
    std::cout << CLASSNAME << ":" << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level);
    std::cout << "Attributes:" << std::endl;
    TAB(level+1);
    std::cout << "application:" << application << std::endl;
}
Beispiel #29
0
void
VertexLoop::Print(int level) {
    TAB(level); std::cout << CLASSNAME << ":" << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;

    TAB(level); std::cout << "Local Attributes:" << std::endl;
    loop_vertex->Print(level+1);

    TAB(level); std::cout << "Inherited Attributes:" << std::endl;
    Loop::Print(level+1);
}
void
RationalBSplineCurveWithKnots::Print(int level)
{
    TAB(level);
    std::cout << CLASSNAME << ":" << name << "(";
    std::cout << "ID:" << STEPid() << ")" << std::endl;
    std::cout << "ON_id:(" << ON_id << ")" << std::endl;

    RationalBSplineCurve::Print(level + 1);
    BSplineCurveWithKnots::Print(level + 1);
}