HomoBFieldWidget soweit erstmal fertig

git-svn-id: http://svn.lsim.tuxzone.org/trunk@8 4bec179b-ab65-46ed-a5f8-55b8b5c735d0
This commit is contained in:
catdog2
2008-10-15 20:23:41 +00:00
parent eab7792a79
commit 4c6bb8e3f6
6 changed files with 598 additions and 56 deletions

View File

@@ -31,8 +31,9 @@ HomoBFieldItem::HomoBFieldItem(QRectF sizeRect): FieldItem() {
setFlag(ItemIsSelectable);
setFlag(ItemIsFocusable);
setOuterPenWidth (2);
setIsDirectionIntoPlane(true);
dockWidget = new HomoBFieldWidget(0,0,this);
setIsDirectionIntoPlane(true);
setFluxDensity(233);
}
@@ -172,6 +173,19 @@ bool HomoBFieldItem::getIsDirectionIntoPlane() const {
void HomoBFieldItem::setIsDirectionIntoPlane ( bool theValue ) {
if(isDirectionIntoPlane == theValue) return;
prepareGeometryChange();
isDirectionIntoPlane = theValue;
emit directionChanged(theValue);
}
double HomoBFieldItem::getFluxDensity() const {
return fluxDensity;
}
void HomoBFieldItem::setFluxDensity ( double theValue ) {
if(fluxDensity == theValue) return;
fluxDensity = theValue;
emit fluxDensityChanged(theValue);
}