HomoBFieldWidget soweit erstmal fertig
git-svn-id: http://svn.lsim.tuxzone.org/trunk@8 4bec179b-ab65-46ed-a5f8-55b8b5c735d0
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user