
org.bimserver.models.ifc4.impl.IfcGeometricRepresentationContextImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pluginbase Show documentation
Show all versions of pluginbase Show documentation
Base project for BIMserver plugin development. Some plugins mights also need the Shared library
The newest version!
/**
* Copyright (C) 2009-2014 BIMserver.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package org.bimserver.models.ifc4.impl;
import org.bimserver.models.ifc4.Ifc4Package;
import org.bimserver.models.ifc4.IfcAxis2Placement;
import org.bimserver.models.ifc4.IfcDirection;
import org.bimserver.models.ifc4.IfcGeometricRepresentationContext;
import org.bimserver.models.ifc4.IfcGeometricRepresentationSubContext;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
/**
*
* An implementation of the model object 'Ifc Geometric Representation Context'.
*
*
* The following features are implemented:
*
*
* - {@link org.bimserver.models.ifc4.impl.IfcGeometricRepresentationContextImpl#getCoordinateSpaceDimension Coordinate Space Dimension}
* - {@link org.bimserver.models.ifc4.impl.IfcGeometricRepresentationContextImpl#getPrecision Precision}
* - {@link org.bimserver.models.ifc4.impl.IfcGeometricRepresentationContextImpl#getPrecisionAsString Precision As String}
* - {@link org.bimserver.models.ifc4.impl.IfcGeometricRepresentationContextImpl#getWorldCoordinateSystem World Coordinate System}
* - {@link org.bimserver.models.ifc4.impl.IfcGeometricRepresentationContextImpl#getTrueNorth True North}
* - {@link org.bimserver.models.ifc4.impl.IfcGeometricRepresentationContextImpl#getHasSubContexts Has Sub Contexts}
*
*
* @generated
*/
public class IfcGeometricRepresentationContextImpl extends IfcRepresentationContextImpl
implements IfcGeometricRepresentationContext {
/**
*
*
* @generated
*/
protected IfcGeometricRepresentationContextImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT;
}
/**
*
*
* @generated
*/
public int getCoordinateSpaceDimension() {
return (Integer) eGet(Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__COORDINATE_SPACE_DIMENSION,
true);
}
/**
*
*
* @generated
*/
public void setCoordinateSpaceDimension(int newCoordinateSpaceDimension) {
eSet(Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__COORDINATE_SPACE_DIMENSION,
newCoordinateSpaceDimension);
}
/**
*
*
* @generated
*/
public double getPrecision() {
return (Double) eGet(Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__PRECISION, true);
}
/**
*
*
* @generated
*/
public void setPrecision(double newPrecision) {
eSet(Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__PRECISION, newPrecision);
}
/**
*
*
* @generated
*/
public void unsetPrecision() {
eUnset(Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__PRECISION);
}
/**
*
*
* @generated
*/
public boolean isSetPrecision() {
return eIsSet(Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__PRECISION);
}
/**
*
*
* @generated
*/
public String getPrecisionAsString() {
return (String) eGet(Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__PRECISION_AS_STRING, true);
}
/**
*
*
* @generated
*/
public void setPrecisionAsString(String newPrecisionAsString) {
eSet(Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__PRECISION_AS_STRING, newPrecisionAsString);
}
/**
*
*
* @generated
*/
public void unsetPrecisionAsString() {
eUnset(Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__PRECISION_AS_STRING);
}
/**
*
*
* @generated
*/
public boolean isSetPrecisionAsString() {
return eIsSet(Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__PRECISION_AS_STRING);
}
/**
*
*
* @generated
*/
public IfcAxis2Placement getWorldCoordinateSystem() {
return (IfcAxis2Placement) eGet(
Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__WORLD_COORDINATE_SYSTEM, true);
}
/**
*
*
* @generated
*/
public void setWorldCoordinateSystem(IfcAxis2Placement newWorldCoordinateSystem) {
eSet(Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__WORLD_COORDINATE_SYSTEM,
newWorldCoordinateSystem);
}
/**
*
*
* @generated
*/
public IfcDirection getTrueNorth() {
return (IfcDirection) eGet(Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__TRUE_NORTH, true);
}
/**
*
*
* @generated
*/
public void setTrueNorth(IfcDirection newTrueNorth) {
eSet(Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__TRUE_NORTH, newTrueNorth);
}
/**
*
*
* @generated
*/
public void unsetTrueNorth() {
eUnset(Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__TRUE_NORTH);
}
/**
*
*
* @generated
*/
public boolean isSetTrueNorth() {
return eIsSet(Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__TRUE_NORTH);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
public EList getHasSubContexts() {
return (EList) eGet(
Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__HAS_SUB_CONTEXTS, true);
}
/**
*
*
* @generated
*/
public void unsetHasSubContexts() {
eUnset(Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__HAS_SUB_CONTEXTS);
}
/**
*
*
* @generated
*/
public boolean isSetHasSubContexts() {
return eIsSet(Ifc4Package.Literals.IFC_GEOMETRIC_REPRESENTATION_CONTEXT__HAS_SUB_CONTEXTS);
}
} //IfcGeometricRepresentationContextImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy